diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-19 13:16:25 +0530 |
|---|---|---|
| committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-19 14:11:19 +0530 |
| commit | 17385892cbe4e0359c45a6221036dd5d6c9cb283 (patch) | |
| tree | c0d1b8d3f8f7a7104bd897be08b6ae8a2ffbe54f /app/src/main/res/layout/item_create_sheet.xml | |
| parent | eb5a30c3a9f1474e452d28032c238cc3738eb3d8 (diff) | |
| download | HardenedPass-17385892cbe4e0359c45a6221036dd5d6c9cb283.tar.gz HardenedPass-17385892cbe4e0359c45a6221036dd5d6c9cb283.zip | |
PasswordFragment: Replace fab options with descriptive bottom sheet
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res/layout/item_create_sheet.xml')
| -rw-r--r-- | app/src/main/res/layout/item_create_sheet.xml | 39 |
1 files changed, 39 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <com.google.android.material.button.MaterialButton + style="@style/Widget.MaterialComponents.Button.TextButton" + android:id="@+id/create_folder" + android:layout_width="match_parent" + android:layout_height="@dimen/bottom_sheet_item_height" + android:text="@string/bottom_sheet_create_new_folder" + android:textAlignment="viewStart" + android:textColor="?attr/colorOnSurface" + android:layout_margin="@dimen/normal_margin" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:icon="@drawable/ic_action_new_folder" + app:iconPadding="@dimen/normal_margin" + app:iconTint="?attr/colorSecondary" + app:rippleColor="?attr/colorSecondary" /> + + <com.google.android.material.button.MaterialButton + style="@style/Widget.MaterialComponents.Button.TextButton" + android:id="@+id/create_password" + android:layout_width="match_parent" + android:layout_height="@dimen/bottom_sheet_item_height" + android:text="@string/bottom_sheet_create_new_password" + android:textAlignment="viewStart" + android:textColor="?attr/colorOnSurface" + android:layout_margin="@dimen/normal_margin" + app:layout_constraintTop_toBottomOf="@id/create_folder" + app:icon="@drawable/ic_action_new_password" + app:iconPadding="@dimen/normal_margin" + app:iconTint="?attr/colorSecondary" + app:rippleColor="?attr/colorSecondary" /> + +</androidx.constraintlayout.widget.ConstraintLayout> |
