From 3a646476ff61980d50043f43284f6036fa20e562 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Fri, 29 May 2020 11:16:52 +1000 Subject: [PATCH] Implement remaining onion request UI --- res/drawable/accent_dot.xml | 2 +- res/drawable/paths_building_dot.xml | 8 ++ res/layout/activity_home.xml | 16 +++- res/layout/activity_path.xml | 9 ++ res/values/colors.xml | 1 + res/values/dimens.xml | 1 + .../securesms/loki/activities/HomeActivity.kt | 2 +- .../securesms/loki/activities/PathActivity.kt | 83 ++++++++++++++++--- .../loki/activities/SettingsActivity.kt | 23 +---- .../securesms/loki/utilities/ViewUtilities.kt | 19 ++++- .../securesms/loki/views/PathStatusView.kt | 77 +++++++++++++++++ 11 files changed, 205 insertions(+), 36 deletions(-) create mode 100644 res/drawable/paths_building_dot.xml create mode 100644 src/org/thoughtcrime/securesms/loki/views/PathStatusView.kt diff --git a/res/drawable/accent_dot.xml b/res/drawable/accent_dot.xml index 9d5d5438f1..2d5ffdfe0c 100644 --- a/res/drawable/accent_dot.xml +++ b/res/drawable/accent_dot.xml @@ -5,4 +5,4 @@ - + \ No newline at end of file diff --git a/res/drawable/paths_building_dot.xml b/res/drawable/paths_building_dot.xml new file mode 100644 index 0000000000..e5da8b82c0 --- /dev/null +++ b/res/drawable/paths_building_dot.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/res/layout/activity_home.xml b/res/layout/activity_home.xml index 23fb5d872f..bdfdc479fc 100644 --- a/res/layout/activity_home.xml +++ b/res/layout/activity_home.xml @@ -40,13 +40,21 @@ android:layout_centerVertical="true" android:layout_marginLeft="64dp" /> - + android:layout_centerVertical="true" > + + + + diff --git a/res/layout/activity_path.xml b/res/layout/activity_path.xml index 6a3539778d..6dd8dff316 100644 --- a/res/layout/activity_path.xml +++ b/res/layout/activity_path.xml @@ -3,6 +3,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" android:background="@drawable/default_session_background" android:orientation="vertical" android:gravity="center"> @@ -32,6 +33,14 @@ android:orientation="vertical" android:layout_centerInParent="true" /> + +