summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-09-23 16:12:10 -0700
committernicolasroard <nicolasroard@google.com>2013-09-23 16:14:10 -0700
commit105fbcf3289491aa4f590057e304fee33f1c88ca (patch)
treee0455aeb56c3ae7426def01c893384e29421f5e0 /res
parenteccdc4285476c98bff3dc5bde113b7f855b18346 (diff)
downloadandroid_packages_apps_Gallery2-105fbcf3289491aa4f590057e304fee33f1c88ca.tar.gz
android_packages_apps_Gallery2-105fbcf3289491aa4f590057e304fee33f1c88ca.tar.bz2
android_packages_apps_Gallery2-105fbcf3289491aa4f590057e304fee33f1c88ca.zip
Fix issues with RTL support
bug:8148068 Change-Id: I869e1a90686c46f8076a66f94040ad03c7c6ca10
Diffstat (limited to 'res')
-rw-r--r--res/layout-land/filtershow_grad_ui.xml31
-rw-r--r--res/layout/filtershow_control_action_slider.xml4
2 files changed, 22 insertions, 13 deletions
diff --git a/res/layout-land/filtershow_grad_ui.xml b/res/layout-land/filtershow_grad_ui.xml
index 63f941801..fd09beebb 100644
--- a/res/layout-land/filtershow_grad_ui.xml
+++ b/res/layout-land/filtershow_grad_ui.xml
@@ -102,18 +102,19 @@
android:layout_gravity="fill_horizontal"
style="@style/FilterShowSlider" />
</GridLayout>
- <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:columnCount="2"
- android:orientation="horizontal"
- android:layout_marginTop="24dp" >
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:layout_marginTop="24dp">
+
- <ImageButton
+ <ImageButton
android:id="@+id/gradAddButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="left|center_vertical"
+ android:layout_gravity="start|center_vertical"
+ android:gravity="start"
android:scaleType="centerInside"
android:layout_weight="0"
android:background="@drawable/filtershow_button_background"
@@ -121,16 +122,24 @@
android:paddingBottom="8dp"
android:layout_marginLeft="48dp" />
- <ImageButton
+ <View
+ android:layout_width="wrap_content"
+ android:layout_height="8dp"
+ android:layout_weight="1"/>
+
+ <ImageButton
android:id="@+id/gradDelButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="right|center_vertical"
+ android:layout_gravity="end|center_vertical"
+ android:gravity="end"
android:scaleType="centerInside"
android:layout_weight="0"
android:background="@drawable/filtershow_button_background"
android:src="@drawable/ic_menu_trash_holo_light"
android:paddingBottom="8dp"
android:layout_marginRight="48dp" />
- </GridLayout>
+
+ </LinearLayout>
+
</LinearLayout>
diff --git a/res/layout/filtershow_control_action_slider.xml b/res/layout/filtershow_control_action_slider.xml
index a3ef3ed5d..34eac1e69 100644
--- a/res/layout/filtershow_control_action_slider.xml
+++ b/res/layout/filtershow_control_action_slider.xml
@@ -25,7 +25,7 @@
android:id="@+id/leftActionButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="left|center_vertical"
+ android:layout_gravity="start|center_vertical"
android:scaleType="centerInside"
android:layout_weight="0"
android:background="@drawable/filtershow_button_background"
@@ -44,7 +44,7 @@
android:id="@+id/rightActionButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="left|center_vertical"
+ android:layout_gravity="end|center_vertical"
android:scaleType="centerInside"
android:layout_weight="0"
android:background="@drawable/filtershow_button_background"