replace the switch with a checkbox at the widget config screen too

This commit is contained in:
tibbi 2021-11-30 12:24:50 +01:00
parent 904c2f57ab
commit 1e8c8e6f76

View file

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/config_holder" android:id="@+id/config_holder"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -17,22 +15,17 @@
<RelativeLayout <RelativeLayout
android:id="@+id/folder_picker_show_folder_name_holder" android:id="@+id/folder_picker_show_folder_name_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground" android:background="?attr/selectableItemBackground">
android:paddingStart="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
android:paddingEnd="@dimen/medium_margin"
android:paddingBottom="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MySwitchCompat <com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/folder_picker_show_folder_name" android:id="@+id/folder_picker_show_folder_name"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@null" android:text="@string/show_folder_name" />
android:clickable="false"
android:text="@string/show_folder_name"
app:switchPadding="@dimen/medium_margin"/>
</RelativeLayout> </RelativeLayout>