OSDN Git Service

CMFM: Use ellipsize middle
authorJorge Ruesga <jorge@ruesga.com>
Thu, 20 Mar 2014 00:09:03 +0000 (01:09 +0100)
committerJorge Ruesga <jorge@ruesga.com>
Thu, 20 Mar 2014 00:09:03 +0000 (01:09 +0100)
Change-Id: Ic4a2317c0823ea5db006169c8f0f1a496407f6e1
JIRA: CYAN-1925
Issue: https://jira.cyanogenmod.org/browse/CYAN-1925
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
res/layout/history_item.xml
res/layout/navigation_view_details_item.xml
res/layout/navigation_view_icons_item.xml
res/layout/navigation_view_simple_item.xml

index ad98714..ef02927 100644 (file)
@@ -43,6 +43,7 @@
             android:id="@+id/history_item_name"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
+            android:ellipsize="end"
             android:singleLine="true"
             android:textAppearance="@style/primary_text_appearance" />
 
@@ -51,6 +52,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:singleLine="true"
+            android:ellipsize="middle"
             android:textAppearance="@style/secondary_text_appearance" />
     </LinearLayout>
 
index 2da781e..7ea9e20 100644 (file)
@@ -51,6 +51,7 @@
       android:layout_alignParentTop="true"
       android:layout_marginLeft="@dimen/default_margin"
       android:layout_marginTop="@dimen/default_margin"
+      android:ellipsize="middle"
       android:singleLine="true"
       android:textAppearance="@style/primary_text_appearance" />
 
index 19dcc7a..6aab20d 100644 (file)
@@ -44,7 +44,7 @@
     android:layout_height="match_parent"
     android:layout_below="@id/navigation_view_item_icon"
     android:layout_toRightOf="@id/navigation_view_item_check"
-    android:ellipsize="end"
+    android:ellipsize="middle"
     android:gravity="center|center_vertical"
     android:maxLines="@integer/default_grid_item_text_max_lines"
     android:textAppearance="@style/secondary_text_appearance"
index e25039a..03dbb0b 100644 (file)
@@ -46,6 +46,7 @@
     android:layout_marginRight="@dimen/extra_margin"
     android:gravity="left|center_vertical"
     android:singleLine="true"
+    android:ellipsize="middle"
     android:textAppearance="@style/primary_text_appearance" />
 
 </LinearLayout>