list: switch to header divider

Switch to item decorations to manage header dividers.

This is much more reliable than encoding it in-data. Only cost comes in
that it forces me to backport yet another component since I still can't
update MDC after over half a year.
This commit is contained in:
Alexander Capehart
2023-01-17 14:37:33 -07:00
parent fb93b82b2b
commit 9e1f6af21e
20 changed files with 597 additions and 91 deletions
+1 -2
View File
@@ -2,8 +2,7 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:title="@string/set_audio">
<PreferenceCategory android:title="@string/set_playback"
app:layout="@layout/item_bare_header">
<PreferenceCategory android:title="@string/set_playback">
<SwitchPreferenceCompat
app:key="@string/set_key_headset_autoplay"
+1 -2
View File
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
app:title="@string/set_content">
<PreferenceCategory app:title="@string/set_music"
app:layout="@layout/item_bare_header">
<PreferenceCategory app:title="@string/set_music">
<SwitchPreferenceCompat
app:defaultValue="false"
@@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
app:title="@string/set_personalize">
<PreferenceCategory app:title="@string/set_display"
app:layout="@layout/item_bare_header">
<PreferenceCategory app:title="@string/set_display">
<org.oxycblt.auxio.settings.ui.WrappedDialogPreference
app:key="@string/set_key_home_tabs"