Refactor styles again, this time trying to seperate the more layout-specific attributes so that layouts become more re-usable. This also updates the naming conventions of styles.
41 lines
1.8 KiB
XML
41 lines
1.8 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=".library.LibraryFragment">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:animateLayoutChanges="true"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/library_toolbar"
|
|
style="@style/Widget.Toolbar"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:menu="@menu/menu_library"
|
|
app:title="@string/lbl_library" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/library_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_constraintTop_toBottomOf="@+id/library_toolbar"
|
|
tools:listitem="@layout/item_artist" />
|
|
|
|
<org.oxycblt.auxio.recycler.FastScrollView
|
|
android:id="@+id/library_fast_scroll"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/library_toolbar" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |