From 55563896be66c6325115376bd5764efba48f8340 Mon Sep 17 00:00:00 2001 From: Jason Chiu Date: Wed, 12 Feb 2020 19:15:26 +0800 Subject: [PATCH] Revise homepage sticky cards UI - revmove material card layout - remove slice header's divider - add dividers below each sticky cards - simplify contextual_slice_full_tile layout Bug: 149371123 Test: visual Change-Id: I13a8af21f565114220a093409e2a9ca664a57b02 --- res/layout/contextual_slice_full_tile.xml | 26 +++++++------------ res/layout/contextual_slice_sticky_tile.xml | 11 +++++--- res/values/styles.xml | 6 +++++ ...ConditionHeaderContextualCardRenderer.java | 2 +- .../slices/SliceContextualCardRenderer.java | 2 +- .../slices/SliceFullCardRendererHelper.java | 6 ++++- 6 files changed, 30 insertions(+), 23 deletions(-) diff --git a/res/layout/contextual_slice_full_tile.xml b/res/layout/contextual_slice_full_tile.xml index 1438cfb1c32..4b1155e3e97 100644 --- a/res/layout/contextual_slice_full_tile.xml +++ b/res/layout/contextual_slice_full_tile.xml @@ -21,23 +21,17 @@ android:layout_height="wrap_content" style="@style/ContextualCardStyle"> - + + + android:layout_height="wrap_content" + android:importantForAccessibility="no"/> - + + - - - - - - \ No newline at end of file diff --git a/res/layout/contextual_slice_sticky_tile.xml b/res/layout/contextual_slice_sticky_tile.xml index 117732d929c..734697f966e 100644 --- a/res/layout/contextual_slice_sticky_tile.xml +++ b/res/layout/contextual_slice_sticky_tile.xml @@ -15,11 +15,12 @@ limitations under the License. --> - + android:orientation="vertical" + style="@style/StickyCardStyle"> - \ No newline at end of file + + + diff --git a/res/values/styles.xml b/res/values/styles.xml index 02998ae466c..9816e0773b6 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -423,6 +423,12 @@ ?android:attr/colorControlHighlight + +