From c09032900feccb40719cdd90348c942148697c7b Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Thu, 16 Apr 2020 14:49:23 +1000 Subject: [PATCH] Implement PN mode screen UI --- AndroidManifest.xml | 3 + res/drawable/pn_option_background.xml | 15 +++ ..._option_background_deselect_transition.xml | 5 + ...pn_option_background_select_transition.xml | 5 + .../pn_option_background_selected.xml | 15 +++ res/layout-sw400dp/activity_pn_mode.xml | 116 ++++++++++++++++++ res/layout/activity_pn_mode.xml | 116 ++++++++++++++++++ res/values/colors.xml | 2 + res/values/dimens.xml | 1 + res/values/strings.xml | 8 ++ .../redesign/activities/PNModeActivity.kt | 77 ++++++++++++ 11 files changed, 363 insertions(+) create mode 100644 res/drawable/pn_option_background.xml create mode 100644 res/drawable/pn_option_background_deselect_transition.xml create mode 100644 res/drawable/pn_option_background_select_transition.xml create mode 100644 res/drawable/pn_option_background_selected.xml create mode 100644 res/layout-sw400dp/activity_pn_mode.xml create mode 100644 res/layout/activity_pn_mode.xml create mode 100644 src/org/thoughtcrime/securesms/loki/redesign/activities/PNModeActivity.kt diff --git a/AndroidManifest.xml b/AndroidManifest.xml index bfa2c456dc..ea4e449167 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -112,6 +112,9 @@ android:name="org.thoughtcrime.securesms.loki.redesign.activities.DisplayNameActivity" android:screenOrientation="portrait" android:windowSoftInputMode="adjustResize" /> + + + + + + + + + + \ No newline at end of file diff --git a/res/drawable/pn_option_background_deselect_transition.xml b/res/drawable/pn_option_background_deselect_transition.xml new file mode 100644 index 0000000000..7fcb8e1160 --- /dev/null +++ b/res/drawable/pn_option_background_deselect_transition.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/res/drawable/pn_option_background_select_transition.xml b/res/drawable/pn_option_background_select_transition.xml new file mode 100644 index 0000000000..21c58cf71d --- /dev/null +++ b/res/drawable/pn_option_background_select_transition.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/res/drawable/pn_option_background_selected.xml b/res/drawable/pn_option_background_selected.xml new file mode 100644 index 0000000000..56d1ed983a --- /dev/null +++ b/res/drawable/pn_option_background_selected.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/res/layout-sw400dp/activity_pn_mode.xml b/res/layout-sw400dp/activity_pn_mode.xml new file mode 100644 index 0000000000..8edc9267df --- /dev/null +++ b/res/layout-sw400dp/activity_pn_mode.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +