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:
@@ -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" />
|
|
||||||
Reference in New Issue
Block a user