ui: fix liftOnScroll issues entirely
Make a hack layout that fixes the problem of the lift state not actually following the RecyclerView state. This should remove the need for all the fragile fixes for this UI idiom.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
<org.oxycblt.auxio.ui.LiftAppBarLayout
|
||||
android:id="@+id/detail_appbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -19,7 +19,7 @@
|
||||
android:id="@+id/detail_toolbar"
|
||||
style="@style/Widget.Toolbar.Icon" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
</org.oxycblt.auxio.ui.LiftAppBarLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/detail_recycler"
|
||||
@@ -27,7 +27,8 @@
|
||||
android:layout_height="match_parent"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
||||
tools:listitem="@layout/item_artist_header" />
|
||||
tools:listitem="@layout/item_artist_header"
|
||||
tools:layout_marginTop="56dp"/>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</layout>
|
||||
@@ -12,7 +12,7 @@
|
||||
android:background="?attr/colorSurface"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
<org.oxycblt.auxio.ui.LiftAppBarLayout
|
||||
android:id="@+id/queue_appbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -26,7 +26,7 @@
|
||||
app:navigationIcon="@drawable/ic_down"
|
||||
app:title="@string/lbl_queue" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
</org.oxycblt.auxio.ui.LiftAppBarLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/queue_recycler"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
<org.oxycblt.auxio.ui.LiftAppBarLayout
|
||||
android:id="@+id/search_appbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -29,7 +29,7 @@
|
||||
app:boxBackgroundMode="filled"
|
||||
app:boxStrokeColor="?attr/colorAccent"
|
||||
app:boxStrokeWidth="0dp"
|
||||
app:boxStrokeWidthFocused="2dp"
|
||||
app:boxStrokeWidthFocused="@dimen/size_stroke_large"
|
||||
app:endIconContentDescription="@string/desc_clear_search"
|
||||
app:endIconDrawable="@drawable/ic_close"
|
||||
app:endIconMode="clear_text"
|
||||
@@ -48,7 +48,7 @@
|
||||
android:textCursorDrawable="@drawable/ui_cursor" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
</org.oxycblt.auxio.ui.LiftAppBarLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/search_recycler"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
android:background="?attr/colorSurface"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
<org.oxycblt.auxio.ui.LiftAppBarLayout
|
||||
android:id="@+id/settings_appbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -26,7 +26,7 @@
|
||||
app:menu="@menu/menu_settings"
|
||||
app:title="@string/set_title" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
</org.oxycblt.auxio.ui.LiftAppBarLayout>
|
||||
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
android:id="@+id/settings_list_fragment"
|
||||
|
||||
Reference in New Issue
Block a user