Migrate to MaterialSwitch component
parent
9e7aaa6c91
commit
b1d51bbefb
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<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" />
|
||||||
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
|
|
||||||
<style name="Widget.Kotatsu.Switch" parent="Widget.Material3.CompoundButton.Switch">
|
|
||||||
<item name="android:thumb">@drawable/switch_thumb</item>
|
|
||||||
<item name="thumbTint">@color/selector_switch_thumb</item>
|
|
||||||
<item name="track">@drawable/switch_track</item>
|
|
||||||
<item name="trackTint">@color/selector_switch_track</item>
|
|
||||||
<item name="materialThemeOverlay">@style/ThemeOverlay.Kotatsu.Switch</item>
|
|
||||||
</style>
|
|
||||||
</resources>
|
|
||||||
Loading…
Reference in New Issue