Override switch widget style to Material3

Preference library has apparently no love for Material3 by default

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-06-05 13:31:38 +08:00
parent 54b6bb170f
commit 76fa3646cc
3 changed files with 26 additions and 1 deletions

View File

@@ -17,9 +17,11 @@
~
-->
<androidx.preference.PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.preference.PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<SwitchPreference
android:widgetLayout="@layout/preference_material_switch"
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_UPDATES_EXTENDED"