From 6a0ad25c27e78b3944d13c42297c335060ca9151 Mon Sep 17 00:00:00 2001 From: lynxnb Date: Mon, 11 Oct 2021 17:33:38 +0200 Subject: [PATCH] Update `BottomSheetDialog` appearance * Fix incorrect dialog surface color * Adjust buttons' position --- app/src/main/res/layout/app_dialog.xml | 18 ++++++++++++------ app/src/main/res/values-night/colors.xml | 1 + app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/styles.xml | 4 ++++ app/src/main/res/values/themes.xml | 6 ++++++ 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/app_dialog.xml b/app/src/main/res/layout/app_dialog.xml index b0f55c0c..babc8239 100644 --- a/app/src/main/res/layout/app_dialog.xml +++ b/app/src/main/res/layout/app_dialog.xml @@ -17,9 +17,9 @@ app:shapeAppearanceOverlay="@style/RoundedAppImage" tools:src="@drawable/default_icon" /> - @@ -29,7 +29,9 @@ android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceListItem" android:textSize="18sp" - tools:text="Title" /> + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" + tools:text="The Legend of Zelda: Breath of the Wild" /> + app:layout_constraintTop_toBottomOf="@id/game_title" + app:layout_constraintStart_toStartOf="@id/game_title" + tools:text="Nintendo" />