From 17385892cbe4e0359c45a6221036dd5d6c9cb283 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 19 Apr 2020 13:16:25 +0530 Subject: PasswordFragment: Replace fab options with descriptive bottom sheet Signed-off-by: Harsh Shandilya --- app/src/main/res/layout/item_create_sheet.xml | 39 ++++++++++++++++++++++ app/src/main/res/layout/password_recycler_view.xml | 31 ----------------- app/src/main/res/values/dimens.xml | 2 ++ app/src/main/res/values/strings.xml | 2 ++ app/src/main/res/values/styles.xml | 13 ++++++++ 5 files changed, 56 insertions(+), 31 deletions(-) create mode 100644 app/src/main/res/layout/item_create_sheet.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/item_create_sheet.xml b/app/src/main/res/layout/item_create_sheet.xml new file mode 100644 index 00000000..244537ad --- /dev/null +++ b/app/src/main/res/layout/item_create_sheet.xml @@ -0,0 +1,39 @@ + + + + + + + + diff --git a/app/src/main/res/layout/password_recycler_view.xml b/app/src/main/res/layout/password_recycler_view.xml index 8348bea2..ca2b6550 100644 --- a/app/src/main/res/layout/password_recycler_view.xml +++ b/app/src/main/res/layout/password_recycler_view.xml @@ -24,37 +24,6 @@ tools:listitem="@layout/password_row_layout" /> - - - - - - - 16dp 16dp 8dp + 8dp + 56dp diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index acedf8e3..87357f86 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -360,4 +360,6 @@ Unable to open the ssh-key Please check that it was imported. Wrong passphrase + Create new folder + Create new password diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index b5a03bb4..7058dcff 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -21,6 +21,7 @@ @style/AppTheme.Dialog @style/ThemeOverlay.MaterialComponents.ActionBar @style/TextInputLayoutBase + @style/BottomSheetDialogTheme + +