OSDN Git Service

CMFileManager: Fixed positioning of title in editor custom ActionBar layout
authorZyg0te <edvard.holst@gmail.com>
Sun, 22 Mar 2015 13:34:14 +0000 (14:34 +0100)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Sun, 22 Mar 2015 16:55:23 +0000 (16:55 +0000)
The title TextView cannot be set left of a view within separate the LinearLayout
containing the ActionBar buttons. Hence we set it to be left of the
LinearLayout itself. This fixes the issue where the long title texts would
cover the ActionBar buttons.

Change-Id: I4f9883bb6aad6f7ceededc35305aa0c25d274acd

res/layout/simple_customtitle.xml

index 6828693..de0ff42 100644 (file)
@@ -59,7 +59,7 @@
     android:layout_marginRight="@dimen/extra_large_margin"
     android:textAppearance="@style/title_text_appearance"
     android:layout_alignParentLeft="true"
-    android:layout_toLeftOf="@id/ab_button0"
+    android:layout_toLeftOf="@id/ab_button_cluster"
     android:layout_alignWithParentIfMissing="true"
     android:contentDescription="@null"
     android:gravity="left|center_vertical"