summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-04-22 20:59:20 (GMT)
committerHyunyoung Song <hyunyoungs@google.com>2015-04-22 20:59:20 (GMT)
commit475784a4ebcf3cc4816aba7faaacac7a5f826298 (patch)
tree59c2704032d1b33d132d147accdb81e3667e5523
parent7e2a3608b6fa51c884e051625e10d13597cb8796 (diff)
downloadandroid_packages_apps_Trebuchet-475784a4ebcf3cc4816aba7faaacac7a5f826298.zip
android_packages_apps_Trebuchet-475784a4ebcf3cc4816aba7faaacac7a5f826298.tar.gz
android_packages_apps_Trebuchet-475784a4ebcf3cc4816aba7faaacac7a5f826298.tar.bz2
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
-rw-r--r--res/layout/widget_cell.xml7
-rw-r--r--res/layout/widgets_list_row_view.xml6
-rw-r--r--res/values/dimens.xml6
3 files changed, 8 insertions, 11 deletions
diff --git a/res/layout/widget_cell.xml b/res/layout/widget_cell.xml
index f53b74e..50294c0 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">
<LinearLayout
@@ -61,7 +63,6 @@
android:layout_marginLeft="5dp"
android:layout_weight="0"
android:gravity="start"
-
android:textColor="#FFFFFFFF"
android:textSize="12sp"
android:textAlignment="viewStart"
diff --git a/res/layout/widgets_list_row_view.xml b/res/layout/widgets_list_row_view.xml
index 017b450..f94d023 100644
--- a/res/layout/widgets_list_row_view.xml
+++ b/res/layout/widgets_list_row_view.xml
@@ -19,10 +19,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
- android:layout_marginLeft="8dp"
- android:layout_marginRight="8dp"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp"
android:focusable="true"
android:background="@drawable/focusable_view_bg"
android:descendantFocusability="afterDescendants">
@@ -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" >
<LinearLayout
android:id="@+id/widgets_cell_list"
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index cad60fb..da11082 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -80,7 +80,7 @@
<!-- Widget tray -->
<dimen name="widget_container_inset">8dp</dimen>
- <dimen name="widget_preview_size">140dp</dimen>
+ <dimen name="widget_preview_size">120dp</dimen>
<dimen name="widget_preview_padding_top">8dp</dimen>
<dimen name="widget_preview_label_vertical_padding">8dp</dimen>
<dimen name="widget_preview_label_horizontal_padding">8dp</dimen>
@@ -90,8 +90,8 @@
<dimen name="widget_section_icon_padding">8dp</dimen>
<!-- Equation: widget_preview_size + 2 * widget_preview_padding_horizontal -->
- <dimen name="widget_preview_container_width">156dp</dimen>
- <dimen name="widget_cell_height">160dp</dimen>
+ <dimen name="widget_preview_container_width">136dp</dimen>
+ <dimen name="widget_cell_height">150dp</dimen>
<!-- Padding applied to shortcut previews -->
<dimen name="shortcut_preview_padding_left">0dp</dimen>