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
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
android:layout_marginLeft="5dp"
android:layout_weight="0"
android:gravity="start"
-
android:textColor="#FFFFFFFF"
android:textSize="12sp"
android:textAlignment="viewStart"
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">
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"
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"
<!-- 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>
<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>