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 --- .../ic_map_marker_star_black_36dp.png | Bin 0 -> 919 bytes .../ic_map_marker_star_black_36dp.png | Bin 0 -> 645 bytes .../ic_map_marker_star_black_36dp.png | Bin 0 -> 1182 bytes .../ic_map_marker_star_black_36dp.png | Bin 0 -> 1809 bytes .../ic_map_marker_star_black_36dp.png | Bin 0 -> 2284 bytes .../main/res/layout-xlarge/v_switch_list_item.xml | 93 ++++++++++--------- 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 ++++++++++---------- app/src/main/res/values/strings.xml | 6 ++ 11 files changed, 279 insertions(+), 88 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_map_marker_star_black_36dp.png create mode 100644 app/src/main/res/drawable-mdpi/ic_map_marker_star_black_36dp.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_map_marker_star_black_36dp.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_map_marker_star_black_36dp.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_map_marker_star_black_36dp.png 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') diff --git a/app/src/main/res/drawable-hdpi/ic_map_marker_star_black_36dp.png b/app/src/main/res/drawable-hdpi/ic_map_marker_star_black_36dp.png new file mode 100644 index 00000000..0d395564 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_map_marker_star_black_36dp.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_map_marker_star_black_36dp.png b/app/src/main/res/drawable-mdpi/ic_map_marker_star_black_36dp.png new file mode 100644 index 00000000..3065f57e Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_map_marker_star_black_36dp.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_map_marker_star_black_36dp.png b/app/src/main/res/drawable-xhdpi/ic_map_marker_star_black_36dp.png new file mode 100644 index 00000000..57016c8c Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_map_marker_star_black_36dp.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_map_marker_star_black_36dp.png b/app/src/main/res/drawable-xxhdpi/ic_map_marker_star_black_36dp.png new file mode 100644 index 00000000..3f0cdaba Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_map_marker_star_black_36dp.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_map_marker_star_black_36dp.png b/app/src/main/res/drawable-xxxhdpi/ic_map_marker_star_black_36dp.png new file mode 100644 index 00000000..a4afda4d Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_map_marker_star_black_36dp.png differ diff --git a/app/src/main/res/layout-xlarge/v_switch_list_item.xml b/app/src/main/res/layout-xlarge/v_switch_list_item.xml index 3fa2ac7d..02e52d6d 100644 --- a/app/src/main/res/layout-xlarge/v_switch_list_item.xml +++ b/app/src/main/res/layout-xlarge/v_switch_list_item.xml @@ -1,7 +1,7 @@ @@ -10,68 +10,75 @@ android:layout_width="?android:attr/listPreferredItemHeight" android:layout_height="?android:attr/listPreferredItemHeight" 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 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 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 000effc7..e883b974 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -149,4 +149,10 @@ PGP verification error. Ignoring download. Update failed. No permissions to install app. + Select location + %s will find the best connection for you. + Location with best connection + Automatic + Your traffic is currently routed through: + -- cgit v1.2.3 From d4c418faf893d28e3c543f19a276fada23e2fd6e Mon Sep 17 00:00:00 2001 From: cyberta Date: Wed, 28 Apr 2021 10:40:18 +0200 Subject: ask to disable manual gateway selection if current combination of transport and location fails --- app/src/main/res/values/untranslatable.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main/res') diff --git a/app/src/main/res/values/untranslatable.xml b/app/src/main/res/values/untranslatable.xml index 9c6afadd..6f989cc8 100644 --- a/app/src/main/res/values/untranslatable.xml +++ b/app/src/main/res/values/untranslatable.xml @@ -44,5 +44,9 @@ CircleImageView Copyright 2014 - 2020 Henning Dodenhof. Licensed under the Apache License, Version 2.0 + + %1$s could not connect to %2$s. Do you want to try to connect automatically with best location? + Try best location + \ No newline at end of file -- cgit v1.2.3 From f1d4b39bdc30417247bc1c8dccc75476e9eb9317 Mon Sep 17 00:00:00 2001 From: cyberta Date: Sat, 15 May 2021 14:18:41 +0200 Subject: fix missing empty space in untranslatable.xml string resources --- app/src/main/res/values/untranslatable.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/values/untranslatable.xml b/app/src/main/res/values/untranslatable.xml index 6f989cc8..a08857c1 100644 --- a/app/src/main/res/values/untranslatable.xml +++ b/app/src/main/res/values/untranslatable.xml @@ -46,7 +46,7 @@ %1$s could not connect to %2$s. Do you want to try to connect automatically with best location? - Try best location + Try best location \ 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') 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" />