summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-04-09 16:54:31 -0700
committerHyunyoung Song <hyunyoungs@google.com>2015-04-09 16:54:31 -0700
commita23dab9c646f2f59b503bc4436183d477b8ad492 (patch)
tree1deb5913121a04dcc1d98340685982f6f0933ac3 /res
parent3f471440a8b6b71d4c15501a96befd3b715c9e8f (diff)
downloadandroid_packages_apps_Trebuchet-a23dab9c646f2f59b503bc4436183d477b8ad492.tar.gz
android_packages_apps_Trebuchet-a23dab9c646f2f59b503bc4436183d477b8ad492.tar.bz2
android_packages_apps_Trebuchet-a23dab9c646f2f59b503bc4436183d477b8ad492.zip
WidgetTray UI improvement
- Long application title should be ellipsized - Disable the drawable when the view is no longer attached to the window - Save the PackageItemInfo to the WidgetModel once full res icon bitmap is loaded b/19897708 Change-Id: I96f260f9d165b206905a127fcee9879556c3d0c4
Diffstat (limited to 'res')
-rw-r--r--res/layout/widget_cell.xml2
-rw-r--r--res/layout/widgets_list_row_view.xml2
2 files changed, 3 insertions, 1 deletions
diff --git a/res/layout/widget_cell.xml b/res/layout/widget_cell.xml
index 1286a622b..9e91f677e 100644
--- a/res/layout/widget_cell.xml
+++ b/res/layout/widget_cell.xml
@@ -41,7 +41,7 @@
android:layout_weight="1"
android:gravity="start"
android:singleLine="true"
- android:ellipsize="marquee"
+ android:ellipsize="end"
android:fadingEdge="horizontal"
android:textColor="#FFFFFFFF"
diff --git a/res/layout/widgets_list_row_view.xml b/res/layout/widgets_list_row_view.xml
index c7863c7c3..017b45066 100644
--- a/res/layout/widgets_list_row_view.xml
+++ b/res/layout/widgets_list_row_view.xml
@@ -52,6 +52,8 @@
android:paddingTop="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
+ android:singleLine="true"
+ android:ellipsize="end"
android:gravity="start|center_vertical"
android:textColor="@color/widgets_view_section_text_color"
android:background="@color/widget_text_panel"