From ff5188d7de1df36c5d71d309a08d290560e9d337 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 22 Mar 2021 18:49:19 +0100 Subject: initial draft for gateway selection on Android --- app/src/main/res/layout/f_drawer_main.xml | 9 ++ app/src/main/res/layout/f_gateway_selection.xml | 99 ++++++++++++++++++++++ .../main/res/layout/v_select_text_list_item.xml | 63 ++++++++++++++ app/src/main/res/layout/v_switch_list_item.xml | 97 +++++++++++---------- 4 files changed, 223 insertions(+), 45 deletions(-) create mode 100644 app/src/main/res/layout/f_gateway_selection.xml create mode 100644 app/src/main/res/layout/v_select_text_list_item.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 d2729998..15dd0425 100644 --- a/app/src/main/res/layout/f_drawer_main.xml +++ b/app/src/main/res/layout/f_drawer_main.xml @@ -98,6 +98,15 @@ android:visibility="gone" /> + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/v_select_text_list_item.xml b/app/src/main/res/layout/v_select_text_list_item.xml new file mode 100644 index 00000000..07187016 --- /dev/null +++ b/app/src/main/res/layout/v_select_text_list_item.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + 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 b595e7ce..1686a99d 100644 --- a/app/src/main/res/layout/v_switch_list_item.xml +++ b/app/src/main/res/layout/v_switch_list_item.xml @@ -1,7 +1,7 @@ @@ -10,69 +10,76 @@ android:layout_width="?android:attr/listPreferredItemHeightSmall" android:layout_height="?android:attr/listPreferredItemHeightSmall" android:layout_gravity="center" + android:layout_alignTop="@+id/textContainer" + android:layout_alignBottom="@+id/textContainer" android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:paddingLeft="?android:attr/listPreferredItemPaddingLeft" - tools:src="@drawable/ic_add_circle_outline_grey600_24dp" - /> + tools:src="@drawable/ic_add_circle_outline_grey600_24dp" /> - - - + android:layout_height="wrap_content"> + + + + + \ No newline at end of file -- cgit v1.2.3 From 4b8ea1252cddfd54278676a8b2f64eb937f92c2d Mon Sep 17 00:00:00 2001 From: cyBerta Date: Tue, 18 May 2021 17:53:00 +0200 Subject: adapt default to hide manual gateway selection entry in navigation drawer, if feature switch is enabled and the provider has gateways in different cities the entry is shown~ --- app/src/main/res/layout/f_drawer_main.xml | 1 + 1 file changed, 1 insertion(+) (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 15dd0425..1f1df7f2 100644 --- a/app/src/main/res/layout/f_drawer_main.xml +++ b/app/src/main/res/layout/f_drawer_main.xml @@ -105,6 +105,7 @@ app:icon="@drawable/ic_map_marker_star_black_36dp" android:layout_height="wrap_content" android:layout_width="wrap_content" + android:visibility="gone" />