settings: use plain switch <api 23
Use a plain switch before API 23 to prevent tinting issues. Boy do I love having to accomodate Lollipop's insanity for the 1289289124th time.
This commit is contained in:
parent
f75f75308e
commit
b8ac1e6560
2 changed files with 11 additions and 5 deletions
10
app/src/main/res/layout-v23/view_preference_switch.xml
Normal file
10
app/src/main/res/layout-v23/view_preference_switch.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<com.google.android.material.switchmaterial.SwitchMaterial xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:id="@+id/switchWidget"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:thumb="@drawable/ui_m3_switch_thumb"
|
||||||
|
app:thumbTint="@color/sel_m3_switch_thumb"
|
||||||
|
app:track="@drawable/ui_m3_switch_track"
|
||||||
|
app:trackTint="@color/sel_m3_switch_track" />
|
|
@ -3,8 +3,4 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/switchWidget"
|
android:id="@+id/switchWidget"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content" />
|
||||||
android:thumb="@drawable/ui_m3_switch_thumb"
|
|
||||||
app:thumbTint="@color/sel_m3_switch_thumb"
|
|
||||||
app:track="@drawable/ui_m3_switch_track"
|
|
||||||
app:trackTint="@color/sel_m3_switch_track" />
|
|
Loading…
Reference in a new issue