From 1cad45286651da61f45b688d30ef37f78070c492 Mon Sep 17 00:00:00 2001 From: hasibprince Date: Fri, 21 Oct 2022 21:33:25 +0600 Subject: [PATCH 1/4] custom checkbox preference is added --- .../layout_custom_checkbox_preference.xml | 56 +++++++++++++++++++ app/src/main/res/xml/settings_preferences.xml | 3 +- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/layout/layout_custom_checkbox_preference.xml diff --git a/app/src/main/res/layout/layout_custom_checkbox_preference.xml b/app/src/main/res/layout/layout_custom_checkbox_preference.xml new file mode 100644 index 000000000..23b6f692a --- /dev/null +++ b/app/src/main/res/layout/layout_custom_checkbox_preference.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/xml/settings_preferences.xml b/app/src/main/res/xml/settings_preferences.xml index 8aa5f7052..84d8c6693 100644 --- a/app/src/main/res/xml/settings_preferences.xml +++ b/app/src/main/res/xml/settings_preferences.xml @@ -39,7 +39,8 @@ android:key="@string/updateNotify" android:summary="@string/preference_update_notify_available_description" android:title="@string/preference_update_notify_available_title" - app:iconSpaceReserved="false" /> + app:iconSpaceReserved="false" + android:layout="@layout/layout_custom_checkbox_preference"/> Date: Tue, 25 Oct 2022 12:08:33 +0600 Subject: [PATCH 2/4] fixed margin of settings page ui --- app/src/main/res/layout/custom_preference.xml | 6 +- .../layout_custom_checkbox_preference.xml | 81 +++++++++++-------- .../layout/preference_category_material.xml | 29 +++++++ .../res/layout/preference_widget_checkbox.xml | 24 ++++++ app/src/main/res/values/themes.xml | 3 +- app/src/main/res/xml/settings_preferences.xml | 16 +++- 6 files changed, 118 insertions(+), 41 deletions(-) create mode 100644 app/src/main/res/layout/preference_category_material.xml create mode 100644 app/src/main/res/layout/preference_widget_checkbox.xml diff --git a/app/src/main/res/layout/custom_preference.xml b/app/src/main/res/layout/custom_preference.xml index 0947f7933..03ce954fa 100644 --- a/app/src/main/res/layout/custom_preference.xml +++ b/app/src/main/res/layout/custom_preference.xml @@ -1,6 +1,6 @@ + - + + - - + android:layout_height="wrap_content" + android:layout_gravity="center" /> + - + android:ellipsize="marquee" + android:fadingEdge="horizontal" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@android:color/black" + android:textSize="16sp" /> - + android:textColor="?android:attr/textColorSecondary" /> - \ No newline at end of file diff --git a/app/src/main/res/layout/preference_category_material.xml b/app/src/main/res/layout/preference_category_material.xml new file mode 100644 index 000000000..32b7650f6 --- /dev/null +++ b/app/src/main/res/layout/preference_category_material.xml @@ -0,0 +1,29 @@ + + + \ No newline at end of file diff --git a/app/src/main/res/layout/preference_widget_checkbox.xml b/app/src/main/res/layout/preference_widget_checkbox.xml new file mode 100644 index 000000000..8177ee93f --- /dev/null +++ b/app/src/main/res/layout/preference_widget_checkbox.xml @@ -0,0 +1,24 @@ + + + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 1e6723b29..b0ea1a800 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,6 +1,6 @@ \ No newline at end of file + android:paddingBottom="16dip" /> \ No newline at end of file diff --git a/app/src/main/res/layout/preference_widget_checkbox.xml b/app/src/main/res/layout/preference_widget_checkbox.xml index 8177ee93f..4fa5dee95 100644 --- a/app/src/main/res/layout/preference_widget_checkbox.xml +++ b/app/src/main/res/layout/preference_widget_checkbox.xml @@ -16,9 +16,11 @@ --> \ No newline at end of file + android:background="@null" /> \ No newline at end of file -- GitLab From 8f7e1cd33a48c27f8238c9306618a0430e8c3ba2 Mon Sep 17 00:00:00 2001 From: hasibprince Date: Mon, 7 Nov 2022 16:04:54 +0600 Subject: [PATCH 4/4] updated copyright text --- app/src/main/res/layout/custom_preference.xml | 4 +++- app/src/main/res/values/themes.xml | 1 + app/src/main/res/xml/settings_preferences.xml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/custom_preference.xml b/app/src/main/res/layout/custom_preference.xml index fcb513723..c1805653e 100644 --- a/app/src/main/res/layout/custom_preference.xml +++ b/app/src/main/res/layout/custom_preference.xml @@ -1,6 +1,8 @@ -