summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-04-22 13:59:20 -0700
committerHyunyoung Song <hyunyoungs@google.com>2015-04-22 13:59:20 -0700
commit475784a4ebcf3cc4816aba7faaacac7a5f826298 (patch)
tree59c2704032d1b33d132d147accdb81e3667e5523 /res/layout
parent7e2a3608b6fa51c884e051625e10d13597cb8796 (diff)
downloadandroid_packages_apps_Trebuchet-475784a4ebcf3cc4816aba7faaacac7a5f826298.tar.gz
android_packages_apps_Trebuchet-475784a4ebcf3cc4816aba7faaacac7a5f826298.tar.bz2
android_packages_apps_Trebuchet-475784a4ebcf3cc4816aba7faaacac7a5f826298.zip
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
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/widget_cell.xml7
-rw-r--r--res/layout/widgets_list_row_view.xml6
2 files changed, 5 insertions, 8 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">
<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 017b45066..f94d02330 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"