summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-07-30 15:46:40 +0200
committercyBerta <cyberta@riseup.net>2021-11-14 19:38:03 +0100
commit645545a86bdd1bc832ad2d14f17f5727e352356c (patch)
treec1a033393653badea7af458c3950e53d80a3f81d /app/src/main/res/layout
parent05934715fec39cb22937e82acecd4add4fccd724 (diff)
draft gateway selection UI according to simlpy secure's proposals
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/f_drawer_main.xml2
-rw-r--r--app/src/main/res/layout/f_gateway_selection.xml34
-rw-r--r--app/src/main/res/layout/v_select_text_list_item.xml16
3 files changed, 13 insertions, 39 deletions
diff --git a/app/src/main/res/layout/f_drawer_main.xml b/app/src/main/res/layout/f_drawer_main.xml
index 1f1df7f2..95e6169b 100644
--- a/app/src/main/res/layout/f_drawer_main.xml
+++ b/app/src/main/res/layout/f_drawer_main.xml
@@ -101,7 +101,7 @@
<se.leap.bitmaskclient.base.views.IconTextEntry
android:id="@+id/manualGatewaySelection"
app:text="@string/gateway_selection_title"
- app:subtitle="@string/gateway_selection_best_location"
+ app:subtitle="@string/gateway_selection_recommended_location"
app:icon="@drawable/ic_map_marker_star_black_36dp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
diff --git a/app/src/main/res/layout/f_gateway_selection.xml b/app/src/main/res/layout/f_gateway_selection.xml
index f96b9c08..5a384163 100644
--- a/app/src/main/res/layout/f_gateway_selection.xml
+++ b/app/src/main/res/layout/f_gateway_selection.xml
@@ -11,8 +11,9 @@
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:visibility="gone"
+ android:visibility="visible"
tools:visibility="visible"
+ android:layout_alignParentTop="true"
>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/current_location_description"
@@ -25,7 +26,8 @@
android:paddingEnd="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
- android:text="@string/vpn_securely_routed" />
+
+ android:text="@string/gateway_selection_automatic_location" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/current_location"
@@ -43,26 +45,9 @@
</LinearLayout>
-
-
- <se.leap.bitmaskclient.base.views.IconSwitchEntry
- android:id="@+id/automatic_gateway_switch"
- android:layout_below="@id/current_location_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingTop="@dimen/stdpadding"
- android:paddingStart="@dimen/stdpadding"
- android:paddingLeft="@dimen/stdpadding"
- android:paddingEnd="@dimen/stdpadding"
- android:paddingRight="@dimen/stdpadding"
- app:text="@string/gateway_selection_automatic"
- app:subtitle="@string/gateway_selection_warning"
- app:icon="@drawable/ic_map_marker_star_black_36dp"
- />
-
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/gatewaySelection_list"
- android:layout_below="@id/automatic_gateway_switch"
+ android:layout_below="@id/current_location_container"
android:layout_above="@+id/vpn_button_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -87,12 +72,13 @@
android:layout_height="wrap_content"
android:padding="@dimen/activity_margin"
>
+
<androidx.appcompat.widget.AppCompatButton
- android:id="@+id/vpn_button"
- android:layout_width="wrap_content"
+ android:id="@+id/automatic_gateway_selection_btn"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="end"
- android:text="@string/vpn.button.turn.on" />
+ android:text="@string/gateway_selection_recommended_location"
+ />
</LinearLayout>
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
index 36075424..1d7054a4 100644
--- a/app/src/main/res/layout/v_select_text_list_item.xml
+++ b/app/src/main/res/layout/v_select_text_list_item.xml
@@ -6,25 +6,13 @@
xmlns:tools="http://schemas.android.com/tools">
<!-- views are composed right to left -->
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/checked_icon"
- android:layout_width="?android:attr/listPreferredItemHeightSmall"
- android:layout_height="?android:attr/listPreferredItemHeightSmall"
- android:layout_gravity="center"
- android:padding="10dp"
- android:layout_alignParentEnd="true"
- android:layout_alignParentRight="true"
- tools:src="@drawable/ic_check_bold"
- android:visibility="visible"
- tools:visibility="visible"
- />
<se.leap.bitmaskclient.base.views.LocationIndicator
android:id="@+id/quality"
android:layout_width="56dp"
android:layout_height="match_parent"
- android:layout_toLeftOf="@+id/checked_icon"
- android:layout_toStartOf="@+id/checked_icon"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentRight="true"
tools:visibility="visible"
/>