From 475784a4ebcf3cc4816aba7faaacac7a5f826298 Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Wed, 22 Apr 2015 13:59:20 -0700 Subject: Widgettray UI tweak that introduces bounding box around the widgets. Note: waiting on more polished UX spec right now. But until then, these padding and dimensions are what is used to get the bounding box around the widgets. Change-Id: I7a6a5fa04bbdb135b39291cb671b9a719fcdc4fc --- res/layout/widget_cell.xml | 7 ++++--- res/layout/widgets_list_row_view.xml | 6 +----- res/values/dimens.xml | 6 +++--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/res/layout/widget_cell.xml b/res/layout/widget_cell.xml index f53b74ef8..50294c035 100644 --- a/res/layout/widget_cell.xml +++ b/res/layout/widget_cell.xml @@ -19,9 +19,11 @@ android:layout_width="@dimen/widget_preview_container_width" android:layout_height="wrap_content" android:layout_weight="1" - android:paddingTop="@dimen/widget_preview_padding_top" + android:layout_marginTop="@dimen/widget_preview_padding_top" + android:layout_marginLeft="8dp" + android:layout_marginBottom="8dp" android:orientation="vertical" - android:background="@drawable/focusable_view_bg" + android:background="@color/bubble_dark_background" android:focusable="true"> @@ -49,7 +45,6 @@ android:id="@+id/section" android:layout_width="match_parent" android:layout_height="@dimen/widget_section_height" - android:paddingTop="8dp" android:paddingLeft="16dp" android:paddingRight="16dp" android:singleLine="true" @@ -80,6 +75,7 @@ android:id="@+id/widgets_scroll_container" android:layout_width="match_parent" android:layout_height="@dimen/widget_cell_height" + android:paddingLeft="40dp" android:scrollbars="none" > 8dp - 140dp + 120dp 8dp 8dp 8dp @@ -90,8 +90,8 @@ 8dp - 156dp - 160dp + 136dp + 150dp 0dp -- cgit v1.2.3