Added MD3 switch

This commit is contained in:
Prathamesh More 2021-10-04 11:29:24 +05:30
parent 92b4a2fb57
commit bc29d2ad12
4 changed files with 39 additions and 2 deletions

View file

@ -76,9 +76,11 @@
android:id="@android:id/checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
app:showText="false"
android:clickable="false"
android:focusable="false"
app:track="@drawable/switch_track"
android:thumb="@drawable/switch_thumb"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

View file

@ -64,7 +64,9 @@
android:id="@android:id/checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
app:showText="false"
app:track="@drawable/switch_track"
android:thumb="@drawable/switch_thumb"
android:clickable="false"
android:focusable="false"
app:layout_constraintBottom_toBottomOf="parent"