From a6cd31ae8624f830454adc627ac3a6be323a5333 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 21 Nov 2021 19:36:46 +0100 Subject: implement new gateway selection UI, using same UX principles as for desktop --- app/src/main/res/drawable/check_bold.xml | 8 ++ app/src/main/res/drawable/cust_checkbox.xml | 27 +++++++ app/src/main/res/layout/f_gateway_selection.xml | 80 ++++++++++---------- app/src/main/res/layout/s_layout.xml | 12 --- .../main/res/layout/v_select_text_list_item.xml | 86 +++++++++++++++------- app/src/main/res/layout/v_simple_checkbox.xml | 32 ++++++++ app/src/main/res/values/strings.xml | 7 +- 7 files changed, 166 insertions(+), 86 deletions(-) create mode 100644 app/src/main/res/drawable/check_bold.xml create mode 100644 app/src/main/res/drawable/cust_checkbox.xml delete mode 100644 app/src/main/res/layout/s_layout.xml create mode 100644 app/src/main/res/layout/v_simple_checkbox.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable/check_bold.xml b/app/src/main/res/drawable/check_bold.xml new file mode 100644 index 00000000..836bd3bf --- /dev/null +++ b/app/src/main/res/drawable/check_bold.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/cust_checkbox.xml b/app/src/main/res/drawable/cust_checkbox.xml new file mode 100644 index 00000000..1fa45d09 --- /dev/null +++ b/app/src/main/res/drawable/cust_checkbox.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/f_gateway_selection.xml b/app/src/main/res/layout/f_gateway_selection.xml index a5034182..643ae988 100644 --- a/app/src/main/res/layout/f_gateway_selection.xml +++ b/app/src/main/res/layout/f_gateway_selection.xml @@ -3,7 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - xmlns:app="http://schemas.android.com/apk/res-auto" + android:padding="@dimen/stdpadding" tools:context=".base.fragments.GatewaySelectionFragment"> - + + - android:text="@string/gateway_selection_automatic_location" /> + - + android:layout_marginStart="4dp" + android:layout_marginLeft="4dp" + android:clickable="true" + android:focusable="true" + /> + - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/s_layout.xml b/app/src/main/res/layout/s_layout.xml deleted file mode 100644 index d5717a5b..00000000 --- a/app/src/main/res/layout/s_layout.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - -