From 7d1fc0d3db5f1e41aef71f081a01702c0867f6fc Mon Sep 17 00:00:00 2001 From: Emily Chuang Date: Wed, 31 Oct 2018 17:38:20 +0800 Subject: [PATCH] Update the layout of contextual cards. Fixes: 118849830 Test: visual Change-Id: Ia3f7f155271a22f4f6214fad861475442c23c2f6 --- res/layout/horizontal_divider.xml | 6 ++++-- res/layout/settings_homepage.xml | 27 --------------------------- res/values/dimens.xml | 9 +++++++-- 3 files changed, 11 insertions(+), 31 deletions(-) diff --git a/res/layout/horizontal_divider.xml b/res/layout/horizontal_divider.xml index e4a277dbca7..a13442337ee 100644 --- a/res/layout/horizontal_divider.xml +++ b/res/layout/horizontal_divider.xml @@ -19,5 +19,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/divider" android:layout_width="match_parent" - android:layout_height=".75dp" - android:background="?android:attr/dividerHorizontal" /> \ No newline at end of file + android:layout_height="@dimen/horizontal_divider_height" + android:layout_marginTop="@dimen/horizontal_divider_margin_top" + android:layout_marginBottom="@dimen/horizontal_divider_margin_bottom" + android:background="?android:attr/dividerHorizontal"/> \ No newline at end of file diff --git a/res/layout/settings_homepage.xml b/res/layout/settings_homepage.xml index bd54717367b..0140cedc117 100644 --- a/res/layout/settings_homepage.xml +++ b/res/layout/settings_homepage.xml @@ -27,32 +27,5 @@ android:layout_height="match_parent" android:layoutAnimation="@anim/layout_animation_fall_down"/> - - - - - - - diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 9b33388e3b7..f8b3e9b6840 100755 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -327,11 +327,16 @@ 8dp 2dp - 6dp - 16dp + 4dp + 8dp 16dp 16dp + + 4dp + 8dp + .75dp + 24dp