Use switch instead of checkbox as 'do not ask again' input in dialogs

This commit is contained in:
Sylvain Berfini 2020-10-16 17:07:31 +02:00
parent 715a3c3074
commit f09c0904d0

View file

@ -108,11 +108,10 @@
android:orientation="horizontal"
android:visibility="@{viewModel.showDoNotAskAgain ? View.VISIBLE : View.GONE}">
<CheckBox
<com.google.android.material.switchmaterial.SwitchMaterial
android:checked="@={viewModel.doNotAskAgain}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/checkbox" />
android:layout_height="wrap_content" />
<TextView
style="@style/dialog_message_font"