From f7bb72c60c4deff9ec4b844a0d51ad04454eae2b Mon Sep 17 00:00:00 2001 From: Raff Tsai Date: Tue, 16 Oct 2018 21:47:58 +0800 Subject: [PATCH] Use the same layout style for contextual cards Test: manual Change-Id: I41d86df5147290a17ef698f4f6a192081d1e0742 --- res/layout/homepage_condition_tile.xml | 5 +---- res/layout/homepage_slice_tile.xml | 7 +------ res/values/styles.xml | 9 +++++++++ 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/res/layout/homepage_condition_tile.xml b/res/layout/homepage_condition_tile.xml index 50ef3c250d2..9be5c1efdf4 100644 --- a/res/layout/homepage_condition_tile.xml +++ b/res/layout/homepage_condition_tile.xml @@ -17,12 +17,9 @@ + style="@style/ContextualCardStyle"> diff --git a/res/layout/homepage_slice_tile.xml b/res/layout/homepage_slice_tile.xml index b947d656097..151ad24e4c9 100644 --- a/res/layout/homepage_slice_tile.xml +++ b/res/layout/homepage_slice_tile.xml @@ -20,12 +20,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/homepage_card_top_margin" - android:layout_marginBottom="@dimen/homepage_card_bottom_margin" - android:layout_marginStart="@dimen/homepage_card_side_margin" - android:layout_marginEnd="@dimen/homepage_card_side_margin" - app:cardCornerRadius="@dimen/homepage_card_corner_radius" - app:cardElevation="@dimen/homepage_card_elevation"> + style="@style/ContextualCardStyle"> 24dp + +