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:
9
app/src/main/res/layout/preference_material_switch.xml
Normal file
9
app/src/main/res/layout/preference_material_switch.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Derived from https://github.com/androidx/androidx/blob/8cb282cc/preference/preference/res/layout/preference_widget_switch_compat.xml -->
|
||||
<com.google.android.material.materialswitch.MaterialSwitch xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/switchWidget"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@null"
|
||||
android:clickable="false"
|
||||
android:focusable="false" />
|
||||
Reference in New Issue
Block a user