From 4ba3b75f858251099f18f07be700f9900128f8e1 Mon Sep 17 00:00:00 2001 From: Aditya Wasan Date: Tue, 15 Sep 2020 21:53:12 +0530 Subject: Update on-boarding UI (#1099) * Add onboarding flow from v2 Signed-off-by: Aditya Wasan * Minor fixes Signed-off-by: Aditya Wasan * Add changelog entry Signed-off-by: Aditya Wasan * Remove old activity from manifest Signed-off-by: Aditya Wasan * Remove view type prefix from view ids Signed-off-by: Aditya Wasan * Review fixes Signed-off-by: Aditya Wasan * Treewide: Reformat code Signed-off-by: Aditya Wasan * Moar review fixes Signed-off-by: Aditya Wasan * Revert "Treewide: Reformat code" This reverts commit 348ef0050942526a55890b245afec8d7fee4d81e. Signed-off-by: Harsh Shandilya * onboarding: cleanup OnboardingActivity init Signed-off-by: Harsh Shandilya * Remove unused layout Signed-off-by: Harsh Shandilya * Remove unnecessary ConstraintLayout Signed-off-by: Harsh Shandilya * Shorten animation duration Signed-off-by: Harsh Shandilya * onboarding: use viewBinding extension in fragments Signed-off-by: Harsh Shandilya Co-authored-by: Harsh Shandilya --- app/src/main/res/animator/slide_in_left.xml | 11 +++ app/src/main/res/animator/slide_in_right.xml | 11 +++ app/src/main/res/animator/slide_out_left.xml | 11 +++ app/src/main/res/animator/slide_out_right.xml | 11 +++ app/src/main/res/layout/activity_onboarding.xml | 76 ++----------------- app/src/main/res/layout/fragment_clone.xml | 87 ++++++++++++++++++++++ app/src/main/res/layout/fragment_repo_location.xml | 87 ++++++++++++++++++++++ app/src/main/res/layout/fragment_welcome.xml | 51 +++++++++++++ app/src/main/res/values/strings.xml | 20 ++++- 9 files changed, 296 insertions(+), 69 deletions(-) create mode 100644 app/src/main/res/animator/slide_in_left.xml create mode 100644 app/src/main/res/animator/slide_in_right.xml create mode 100644 app/src/main/res/animator/slide_out_left.xml create mode 100644 app/src/main/res/animator/slide_out_right.xml create mode 100644 app/src/main/res/layout/fragment_clone.xml create mode 100644 app/src/main/res/layout/fragment_repo_location.xml create mode 100644 app/src/main/res/layout/fragment_welcome.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/animator/slide_in_left.xml b/app/src/main/res/animator/slide_in_left.xml new file mode 100644 index 00000000..5f5498e5 --- /dev/null +++ b/app/src/main/res/animator/slide_in_left.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/app/src/main/res/animator/slide_in_right.xml b/app/src/main/res/animator/slide_in_right.xml new file mode 100644 index 00000000..34420581 --- /dev/null +++ b/app/src/main/res/animator/slide_in_right.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/app/src/main/res/animator/slide_out_left.xml b/app/src/main/res/animator/slide_out_left.xml new file mode 100644 index 00000000..5bc22aa9 --- /dev/null +++ b/app/src/main/res/animator/slide_out_left.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/app/src/main/res/animator/slide_out_right.xml b/app/src/main/res/animator/slide_out_right.xml new file mode 100644 index 00000000..8447ae76 --- /dev/null +++ b/app/src/main/res/animator/slide_out_right.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/app/src/main/res/layout/activity_onboarding.xml b/app/src/main/res/layout/activity_onboarding.xml index f2c6f797..6d880c31 100644 --- a/app/src/main/res/layout/activity_onboarding.xml +++ b/app/src/main/res/layout/activity_onboarding.xml @@ -1,73 +1,13 @@ - - - - - - - - - - - - - - + + diff --git a/app/src/main/res/layout/fragment_clone.xml b/app/src/main/res/layout/fragment_clone.xml new file mode 100644 index 00000000..0e173428 --- /dev/null +++ b/app/src/main/res/layout/fragment_clone.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/fragment_repo_location.xml b/app/src/main/res/layout/fragment_repo_location.xml new file mode 100644 index 00000000..cc987d8c --- /dev/null +++ b/app/src/main/res/layout/fragment_repo_location.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/fragment_welcome.xml b/app/src/main/res/layout/fragment_welcome.xml new file mode 100644 index 00000000..98a0475d --- /dev/null +++ b/app/src/main/res/layout/fragment_welcome.xml @@ -0,0 +1,51 @@ + + + + + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 53140e6c..90295413 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -77,7 +77,7 @@ Clone from server Use local directory Repository location - Select where to create your password repository + Select where do you want to create your password repository SD-Card Hidden (Preferred) Choose where to store the passwords @@ -418,4 +418,22 @@ A folder by that name already exists Digits/Symbols (d/s) ds + + + Repository \nLocation + Select \nOpenPGP Provider + Let\'s Go + Select \nRepository Type + Select if you want to create a local repo or clone a remote repo. + Clone Remote Repo + Create Local Repo + Error getting directory uri + Select a directory to store passwords + Select \nStore Name + Select a name for your password store. + Store Name + Select an empty directory for password store + Enter a store name to continue + Cannot create new directory. + -- cgit v1.2.3