From f78eeced2a24d869e514330467395b0471fb2adc Mon Sep 17 00:00:00 2001 From: cyBerta Date: Wed, 24 Nov 2021 23:53:08 +0100 Subject: improve settings list entry layouts --- app/src/main/res/layout/v_icon_text_list_item.xml | 105 ++++++++-------- app/src/main/res/layout/v_switch_list_item.xml | 140 +++++++++++----------- 2 files changed, 127 insertions(+), 118 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/v_icon_text_list_item.xml b/app/src/main/res/layout/v_icon_text_list_item.xml index 06b70a2e..d183864d 100644 --- a/app/src/main/res/layout/v_icon_text_list_item.xml +++ b/app/src/main/res/layout/v_icon_text_list_item.xml @@ -1,62 +1,67 @@ - - - - + android:orientation="horizontal"> + + + - + + + - + diff --git a/app/src/main/res/layout/v_switch_list_item.xml b/app/src/main/res/layout/v_switch_list_item.xml index 5bd4de1b..3ba37b81 100644 --- a/app/src/main/res/layout/v_switch_list_item.xml +++ b/app/src/main/res/layout/v_switch_list_item.xml @@ -1,85 +1,89 @@ - + - - - - + android:orientation="horizontal" + android:layout_toStartOf="@+id/option_switch" + android:layout_toLeftOf="@+id/option_switch" + > + - + + + + + + - - - - - + android:textAppearance="?android:attr/textAppearanceListItemSmall" + android:visibility="visible" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + tools:text="" /> + - \ No newline at end of file + \ No newline at end of file -- cgit v1.2.3 From 6fb2050aaf6e992bf96d41c5f6b19f5c1a3771c3 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 25 Nov 2021 01:54:18 +0100 Subject: implement separate settings fragment --- app/src/main/res/layout/f_drawer_main.xml | 73 ++------------------- app/src/main/res/layout/f_settings.xml | 105 ++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+), 66 deletions(-) create mode 100644 app/src/main/res/layout/f_settings.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/f_drawer_main.xml b/app/src/main/res/layout/f_drawer_main.xml index 65179857..bd7e66ae 100644 --- a/app/src/main/res/layout/f_drawer_main.xml +++ b/app/src/main/res/layout/f_drawer_main.xml @@ -50,13 +50,12 @@ app:text="@string/switch_provider_menu_option" app:icon="@drawable/ic_switch_provider_36" android:visibility="gone" + tools:visibility="visible" /> @@ -69,35 +68,6 @@ app:icon="@drawable/ic_battery_36" /> - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3