OSDN Git Service

Fix 3324645: Fix text wrapping issue in RecentApps
authorJim Miller <jaggies@google.com>
Thu, 17 Feb 2011 23:12:46 +0000 (15:12 -0800)
committerJim Miller <jaggies@google.com>
Thu, 17 Feb 2011 23:12:46 +0000 (15:12 -0800)
This fixes a problem where the application label and descriptions
would wrap to the next line.  It now correctly stays within the
reserved space.

Change-Id: I586b15b1f69b61f260eb612e69b82260f6c9f84a

packages/SystemUI/res/layout-xlarge/status_bar_recent_item.xml

index c358e13..d7e1633 100644 (file)
     />
 
     <TextView android:id="@+id/app_label"
-        android:layout_width="113dip"
+        android:layout_width="97dip"
         android:layout_height="wrap_content"
         android:textSize="18dip"
-        android:fadingEdge="none"
-        android:fadingEdgeLength="0dp"
+        android:fadingEdge="horizontal"
+        android:fadingEdgeLength="10dip"
         android:scrollHorizontally="true"
         android:layout_alignParentLeft="true"
         android:layout_alignParentTop="true"
         android:layout_marginLeft="16dip"
         android:layout_marginTop="32dip"
+        android:singleLine="true"
+        android:ellipsize="marquee"
     />
 
     <TextView android:id="@+id/app_description"
-        android:layout_width="wrap_content"
+        android:layout_width="97dip"
         android:layout_height="wrap_content"
         android:textSize="18dip"
+        android:fadingEdge="horizontal"
+        android:fadingEdgeLength="10dip"
+        android:scrollHorizontally="true"
         android:layout_alignParentLeft="true"
         android:layout_alignParentTop="true"
         android:layout_marginLeft="16dip"
         android:layout_marginTop="61dip"
+        android:singleLine="true"
+        android:ellipsize="marquee"
     />
 
 </RelativeLayout>