OSDN Git Service

Ellipsize titles in middle, otherwise end.
authorJeff Sharkey <jsharkey@android.com>
Mon, 7 Oct 2013 18:39:07 +0000 (11:39 -0700)
committerJeff Sharkey <jsharkey@android.com>
Mon, 7 Oct 2013 18:39:07 +0000 (11:39 -0700)
Long document titles can include distinguishing details at the end
of the title, so ellipsize in the middle.  All other details ellipsize
at the end.

Bug: 11081420
Change-Id: I2c266ebc594d2ad383033b435acb8adb5fb823bc

packages/DocumentsUI/res/layout-sw720dp-land/item_doc_list.xml
packages/DocumentsUI/res/layout/item_doc_grid.xml
packages/DocumentsUI/res/layout/item_doc_list.xml
packages/DocumentsUI/res/layout/item_root.xml
packages/DocumentsUI/res/layout/item_title.xml

index 851061f..adbb9da 100644 (file)
@@ -64,7 +64,7 @@
             android:layout_weight="0.5"
             android:layout_marginEnd="12dp"
             android:singleLine="true"
-            android:ellipsize="marquee"
+            android:ellipsize="middle"
             android:textAlignment="viewStart"
             style="@style/TextAppearance.Medium" />
 
@@ -83,7 +83,7 @@
             android:layout_weight="0.25"
             android:layout_marginEnd="12dp"
             android:singleLine="true"
-            android:ellipsize="marquee"
+            android:ellipsize="end"
             android:textAlignment="viewStart"
             style="@style/TextAppearance.Small" />
 
@@ -95,7 +95,7 @@
             android:layout_marginEnd="12dp"
             android:minWidth="70dp"
             android:singleLine="true"
-            android:ellipsize="marquee"
+            android:ellipsize="end"
             android:textAlignment="viewEnd"
             style="@style/TextAppearance.Small" />
 
             android:layout_marginEnd="12dp"
             android:minWidth="70dp"
             android:singleLine="true"
-            android:ellipsize="marquee"
+            android:ellipsize="end"
             android:textAlignment="viewEnd"
             style="@style/TextAppearance.Small" />
 
index bb5dce1..3aef1cd 100644 (file)
@@ -67,7 +67,7 @@
                 android:layout_height="wrap_content"
                 android:layout_weight="1"
                 android:singleLine="true"
-                android:ellipsize="marquee"
+                android:ellipsize="middle"
                 android:textAlignment="viewStart"
                 style="@style/TextAppearance.Medium" />
 
@@ -97,7 +97,7 @@
                 android:layout_height="wrap_content"
                 android:layout_weight="0.5"
                 android:singleLine="true"
-                android:ellipsize="marquee"
+                android:ellipsize="end"
                 android:textAlignment="viewStart"
                 style="@style/TextAppearance.Small" />
 
                 android:layout_weight="0.5"
                 android:layout_marginStart="8dp"
                 android:singleLine="true"
-                android:ellipsize="marquee"
+                android:ellipsize="end"
                 android:textAlignment="viewStart"
                 style="@style/TextAppearance.Small" />
 
index 4c5b2e3..cab7c0d 100644 (file)
@@ -68,7 +68,7 @@
                 android:layout_height="wrap_content"
                 android:layout_weight="1"
                 android:singleLine="true"
-                android:ellipsize="marquee"
+                android:ellipsize="middle"
                 android:textAlignment="viewStart"
                 style="@style/TextAppearance.Medium" />
 
@@ -97,7 +97,7 @@
                 android:layout_weight="0.25"
                 android:minWidth="70dp"
                 android:singleLine="true"
-                android:ellipsize="marquee"
+                android:ellipsize="end"
                 android:textAlignment="viewStart"
                 style="@style/TextAppearance.Small" />
 
                 android:layout_marginStart="8dp"
                 android:minWidth="70dp"
                 android:singleLine="true"
-                android:ellipsize="marquee"
+                android:ellipsize="end"
                 android:textAlignment="viewStart"
                 style="@style/TextAppearance.Small" />
 
                 android:layout_weight="0.5"
                 android:layout_marginStart="8dp"
                 android:singleLine="true"
-                android:ellipsize="marquee"
+                android:ellipsize="end"
                 android:textAlignment="viewStart"
                 style="@style/TextAppearance.Small" />
 
index 9b52d85..f17c261 100644 (file)
@@ -43,7 +43,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:singleLine="true"
-            android:ellipsize="marquee"
+            android:ellipsize="end"
             android:textAlignment="viewStart"
             style="@style/TextAppearance.Medium" />
 
@@ -52,7 +52,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:singleLine="true"
-            android:ellipsize="marquee"
+            android:ellipsize="end"
             android:textAlignment="viewStart"
             style="@style/TextAppearance.Small" />
 
index 58016f1..6e96fb5 100644 (file)
@@ -38,7 +38,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:singleLine="true"
-        android:ellipsize="marquee"
+        android:ellipsize="middle"
         android:textAlignment="viewStart"
         style="@style/TextAppearance.Medium" />