
Change the album detail layout to rely on a RecyclerView entirely instead of a NestedScrollView, at the cost of some functionality I'll need to re-add.
32 lines
No EOL
1.4 KiB
XML
32 lines
No EOL
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
tools:context=".detail.GenreDetailFragment">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/detail_toolbar"
|
|
style="@style/Toolbar.Style.Icon"
|
|
android:background="?android:attr/windowBackground"
|
|
android:elevation="@dimen/elevation_normal"
|
|
app:contentInsetStartWithNavigation="0dp"
|
|
app:title="@string/label_library"
|
|
tools:menu="@menu/menu_artist_actions" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/detail_recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/genre_song_header"
|
|
tools:listitem="@layout/item_artist_header" />
|
|
</LinearLayout>
|
|
</layout> |