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