ui: redesign headers

Redesign the header component to be more aligned with M3 guidelines.

This includes moving the divider to the top when reasonable, using a
smaller font size, and using a tinted coloration to separate itself
from the list contents.
This commit is contained in:
Alexander Capehart
2023-01-16 19:35:16 -07:00
parent ad9d2f2d9e
commit fb93b82b2b
18 changed files with 55 additions and 45 deletions
+6 -6
View File
@@ -6,6 +6,12 @@
android:layout_height="wrap_content"
android:orientation="vertical">
<com.google.android.material.divider.MaterialDivider
android:id="@+id/header_divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent" />
<TextView
android:id="@android:id/title"
style="@style/Widget.Auxio.TextView.Header"
@@ -13,10 +19,4 @@
android:layout_height="wrap_content"
tools:text="Songs" />
<com.google.android.material.divider.MaterialDivider
android:id="@+id/header_divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent" />
</LinearLayout>