summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-04-28 00:13:27 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-28 00:13:27 +0000
commit341220b954699dbf440024cfc2251f08d6fbc39f (patch)
tree1bd27b658415f8dddae7b21c935a234ca99b6eea /res/layout
parentd23cfce087df09a81e7f06f29615b3b79e2e830c (diff)
parentf17a1c9ad99d46a65de797422fd439382114b348 (diff)
downloadandroid_packages_apps_Trebuchet-341220b954699dbf440024cfc2251f08d6fbc39f.tar.gz
android_packages_apps_Trebuchet-341220b954699dbf440024cfc2251f08d6fbc39f.tar.bz2
android_packages_apps_Trebuchet-341220b954699dbf440024cfc2251f08d6fbc39f.zip
Merge "Widget tray alignment according to UX spec - Fixing an issue where widget preview is not loaded do to faulty canceling of loading async task when view is detached from the window." into ub-launcher3-burnaby
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/widget_cell.xml8
-rw-r--r--res/layout/widgets_list_row_view.xml33
2 files changed, 15 insertions, 26 deletions
diff --git a/res/layout/widget_cell.xml b/res/layout/widget_cell.xml
index 64ddea1ae..cb1c812cb 100644
--- a/res/layout/widget_cell.xml
+++ b/res/layout/widget_cell.xml
@@ -17,13 +17,11 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res-auto"
android:layout_width="@dimen/widget_preview_container_width"
- android:layout_height="wrap_content"
+ android:layout_height="@dimen/widget_cell_height"
android:layout_weight="1"
- android:layout_marginTop="@dimen/widget_preview_padding_top"
- android:layout_marginLeft="8dp"
- android:layout_marginBottom="8dp"
+ android:layout_marginRight="@dimen/widget_row_divider"
android:orientation="vertical"
- android:background="@color/bubble_dark_background"
+ android:background="@color/widgets_cell_color"
android:focusable="true">
<LinearLayout
diff --git a/res/layout/widgets_list_row_view.xml b/res/layout/widgets_list_row_view.xml
index f94d02330..12f6401e4 100644
--- a/res/layout/widgets_list_row_view.xml
+++ b/res/layout/widgets_list_row_view.xml
@@ -20,7 +20,6 @@
android:layout_height="wrap_content"
android:orientation="vertical"
android:focusable="true"
- android:background="@drawable/focusable_view_bg"
android:descendantFocusability="afterDescendants">
<!-- Section info -->
@@ -29,24 +28,23 @@
android:layout_height="wrap_content"
android:orientation="horizontal"
android:focusable="true"
- android:background="@drawable/focusable_view_bg"
android:descendantFocusability="afterDescendants">
<ImageView
android:id="@+id/section_image"
- android:layout_width="@dimen/widget_section_height"
android:layout_height="@dimen/widget_section_height"
- android:paddingLeft="@dimen/widget_section_icon_padding"
- android:paddingRight="@dimen/widget_section_icon_padding"
- android:paddingTop="@dimen/widget_section_icon_padding"
- android:paddingBottom="@dimen/widget_section_icon_padding"
+ android:layout_width="@dimen/widget_section_icon_width"
+ android:paddingLeft="@dimen/widget_section_icon_horizontal_padding"
+ android:paddingRight="@dimen/widget_section_icon_horizontal_padding"
+ android:paddingTop="@dimen/widget_section_icon_vertical_padding"
+ android:paddingBottom="@dimen/widget_section_icon_vertical_padding"
android:background="@color/widget_text_panel"
/>
<TextView
android:id="@+id/section"
android:layout_width="match_parent"
android:layout_height="@dimen/widget_section_height"
- android:paddingLeft="16dp"
- android:paddingRight="16dp"
+ android:paddingEnd="@dimen/widget_preview_label_horizontal_padding"
+ android:paddingRight="@dimen/widget_preview_label_horizontal_padding"
android:singleLine="true"
android:ellipsize="end"
android:gravity="start|center_vertical"
@@ -57,31 +55,24 @@
</LinearLayout>
<!-- Widget list -->
- <RelativeLayout
+ <RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="end"
+ android:background="@color/widgets_cell_color"
>
- <!-- TODO(hyunyoungs): replace the indicator with actual assets. -->
- <FrameLayout
- android:id="@+id/scrollable_indicator"
- android:layout_gravity="center_vertical"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/ic_pageindicator_default"
- android:visibility="invisible"
- />
<HorizontalScrollView
android:id="@+id/widgets_scroll_container"
android:layout_width="match_parent"
android:layout_height="@dimen/widget_cell_height"
- android:paddingLeft="40dp"
+ android:layout_marginLeft="@dimen/widget_row_padding"
android:scrollbars="none" >
<LinearLayout
android:id="@+id/widgets_cell_list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="horizontal" />
+ android:orientation="horizontal"
+ android:background="@color/widget_text_panel"/>
</HorizontalScrollView>
</RelativeLayout>
</LinearLayout>