From 48546653c710c38b8a18b970171c934cce84bd06 Mon Sep 17 00:00:00 2001 From: Phillip Hsu Date: Fri, 7 Oct 2016 16:50:45 -0700 Subject: [PATCH] Fix cardBackgroundColor not applying on 23+, fix centering of duration text in EditTimerActivity layout --- app/src/main/res/layout-land/item_timer.xml | 4 +- .../main/res/layout/activity_edit_timer.xml | 73 ++++++++----------- .../main/res/layout/item_expanded_alarm.xml | 1 + app/src/main/res/layout/item_timer.xml | 4 +- app/src/main/res/values/colors.xml | 7 +- app/src/main/res/values/styles.xml | 2 +- 6 files changed, 44 insertions(+), 47 deletions(-) diff --git a/app/src/main/res/layout-land/item_timer.xml b/app/src/main/res/layout-land/item_timer.xml index 4273464..f171c16 100644 --- a/app/src/main/res/layout-land/item_timer.xml +++ b/app/src/main/res/layout-land/item_timer.xml @@ -17,10 +17,12 @@ + android:layout_marginEnd="@dimen/cardview_margin" + app:cardBackgroundColor="?cardBackgroundColor"> - - - + android:orientation="horizontal" + android:layout_centerHorizontal="true" + android:layout_below="@id/toolbar"> - + - + - + - + - + + + + + + + diff --git a/app/src/main/res/layout/item_expanded_alarm.xml b/app/src/main/res/layout/item_expanded_alarm.xml index 4eefd61..46981d0 100644 --- a/app/src/main/res/layout/item_expanded_alarm.xml +++ b/app/src/main/res/layout/item_expanded_alarm.xml @@ -35,6 +35,7 @@ android:layout_height="wrap_content" app:cardElevation="@dimen/expanded_alarm_elevation" app:cardCornerRadius="0dp" + app:cardBackgroundColor="?cardBackgroundColor" android:foreground="?selectableItemBackground" android:clickable="true" android:layout_marginTop="@dimen/cardview_margin" diff --git a/app/src/main/res/layout/item_timer.xml b/app/src/main/res/layout/item_timer.xml index a00f238..f12dee9 100644 --- a/app/src/main/res/layout/item_timer.xml +++ b/app/src/main/res/layout/item_timer.xml @@ -17,11 +17,13 @@ + android:layout_marginEnd="@dimen/cardview_margin" + app:cardBackgroundColor="?cardBackgroundColor"> #FF5252 - #1fffffff - #0fffffff + @color/alert_dialog_background_color + @color/alert_dialog_background_color_inverse + @color/alert_dialog_background_color_black @color/colorPrimaryFallback @color/colorPrimaryFallbackInverse - #111111 + @android:color/black #4dffffff \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 36fee66..538851d 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -54,7 +54,7 @@ @android:color/black @android:color/black @color/colorAccentBlack - @color/card_background_color_inverse + @color/card_background_color_black @style/AppCompatAlertDialogStyle.Black @android:color/black