OSDN Git Service

fix RTL menu issues
authorJohn Hoford <hoford@google.com>
Fri, 11 Oct 2013 17:08:22 +0000 (10:08 -0700)
committerJohn Hoford <hoford@google.com>
Fri, 11 Oct 2013 17:08:22 +0000 (10:08 -0700)
bug:11184806
Change-Id: I4562b13afc34069ed72a7bf497825abdd57a00ba

res/drawable/filtershow_menu_marker_rtl.xml [new file with mode: 0644]
res/layout-land/filtershow_editor_panel.xml
res/layout/filtershow_editor_panel.xml
src/com/android/gallery3d/filtershow/editors/Editor.java

diff --git a/res/drawable/filtershow_menu_marker_rtl.xml b/res/drawable/filtershow_menu_marker_rtl.xml
new file mode 100644 (file)
index 0000000..1515004
--- /dev/null
@@ -0,0 +1,4 @@
+<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
+        android:src="@drawable/filtershow_menu_marker"
+        android:autoMirrored="true">
+</bitmap>
\ No newline at end of file
index 18b13a4..f51dc14 100644 (file)
@@ -86,7 +86,7 @@
                         android:background="@android:color/transparent"
                         android:text="@string/apply_effect"
                         android:textSize="18dip"
-                        android:drawableRight="@drawable/filtershow_menu_marker"
+                        android:drawableEnd="@drawable/filtershow_menu_marker_rtl"
                         android:textAllCaps="true"/>
 
             </LinearLayout>
index dd91535..9953996 100644 (file)
@@ -89,7 +89,7 @@
                         android:background="@android:color/transparent"
                         android:text="@string/apply_effect"
                         android:textSize="18dip"
-                        android:drawableRight="@drawable/filtershow_menu_marker"
+                        android:drawableEnd="@drawable/filtershow_menu_marker_rtl"
                         android:textAllCaps="true"
                         />
 
index 5f8e8f6..e3eec39 100644 (file)
@@ -285,7 +285,7 @@ public class Editor implements OnSeekBarChangeListener, SwapButton.SwapButtonLis
 
     protected void setMenuIcon(boolean on) {
         mEditTitle.setCompoundDrawablesRelativeWithIntrinsicBounds(
-                0, 0, on ? R.drawable.filtershow_menu_marker : 0, 0);
+                0, 0, on ? R.drawable.filtershow_menu_marker_rtl : 0, 0);
     }
 
     protected void createMenu(int[] strId, View button) {