From c8eeddb6ef18d34fd8afb48b8fe4ecba98d56741 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Fri, 22 Apr 2022 11:32:58 +0200 Subject: [PATCH] New stylish bottom sheet --- .../res/drawable/bottom_sheet_background.xml | 5 + Habitica/res/drawable/bottom_sheet_title.xml | 1 + Habitica/res/layout/bottom_sheet_wrapper.xml | 18 +++ .../res/layout/dialog_challenge_filter.xml | 58 ++++++---- Habitica/res/layout/dialog_task_filter.xml | 33 +++++- Habitica/res/layout/menu_bottom_sheet.xml | 3 +- Habitica/res/values/dimens.xml | 2 + Habitica/res/values/styles.xml | 35 ++++++ .../habitica/ui/activities/ArmoireActivity.kt | 4 +- .../ui/fragments/BaseDialogFragment.kt | 4 +- .../challenges/ChallengeFilterDialogHolder.kt | 12 +- .../habitica/ui/menu/BottomSheetMenu.kt | 11 +- .../ui/views/dialogs/HabiticaBottomDialog.kt | 27 +++++ .../ui/views/tasks/TaskFilterDialog.kt | 108 +++++++----------- 14 files changed, 212 insertions(+), 109 deletions(-) create mode 100644 Habitica/res/drawable/bottom_sheet_background.xml create mode 100644 Habitica/res/layout/bottom_sheet_wrapper.xml create mode 100644 Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/dialogs/HabiticaBottomDialog.kt diff --git a/Habitica/res/drawable/bottom_sheet_background.xml b/Habitica/res/drawable/bottom_sheet_background.xml new file mode 100644 index 000000000..811619d0d --- /dev/null +++ b/Habitica/res/drawable/bottom_sheet_background.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Habitica/res/drawable/bottom_sheet_title.xml b/Habitica/res/drawable/bottom_sheet_title.xml index d33c4bc4c..73543f65b 100644 --- a/Habitica/res/drawable/bottom_sheet_title.xml +++ b/Habitica/res/drawable/bottom_sheet_title.xml @@ -2,4 +2,5 @@ + diff --git a/Habitica/res/layout/bottom_sheet_wrapper.xml b/Habitica/res/layout/bottom_sheet_wrapper.xml new file mode 100644 index 000000000..3f9dbdca8 --- /dev/null +++ b/Habitica/res/layout/bottom_sheet_wrapper.xml @@ -0,0 +1,18 @@ + + + + + \ No newline at end of file diff --git a/Habitica/res/layout/dialog_challenge_filter.xml b/Habitica/res/layout/dialog_challenge_filter.xml index 0bdd075aa..c84ec77d9 100644 --- a/Habitica/res/layout/dialog_challenge_filter.xml +++ b/Habitica/res/layout/dialog_challenge_filter.xml @@ -1,28 +1,41 @@ - - - - + xmlns:android="http://schemas.android.com/apk/res/android"> - android:orientation="vertical"> - + + +