summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamera Software Integration <camswint@localhost>2015-12-15 15:57:16 -0800
committerSteve Kondik <steve@cyngn.com>2016-08-25 21:55:20 -0700
commitd528ecbfc210b93d5a483a9187a2aa4c50bc99c2 (patch)
treea3ed40aaa701c6a6ffaf76e3063644e655318a94
parentb0bfef5c19689d11b0448779963b37f4c7a69662 (diff)
downloadandroid_packages_apps_Snap-d528ecbfc210b93d5a483a9187a2aa4c50bc99c2.zip
android_packages_apps_Snap-d528ecbfc210b93d5a483a9187a2aa4c50bc99c2.tar.gz
android_packages_apps_Snap-d528ecbfc210b93d5a483a9187a2aa4c50bc99c2.tar.bz2
SnapdragonCamera: Fix camera layout issue in RTL
The layout of setting menu is not placed properly in RTL. To fix the problem, replace 'left/right' layout properties with 'start/end'. Change-Id: Ib8d03ffa40712f1845fe7ab148b1a6f35fcc1124 CRs-fixed: 949931
-rw-r--r--res/layout/list_menu_item.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/res/layout/list_menu_item.xml b/res/layout/list_menu_item.xml
index 025bb60..d3cf15c 100644
--- a/res/layout/list_menu_item.xml
+++ b/res/layout/list_menu_item.xml
@@ -36,16 +36,16 @@
android:id="@+id/list_image"
android:layout_width="@dimen/setting_item_icon_width"
android:layout_height="@dimen/setting_item_icon_width"
- android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
- android:layout_marginRight="20dp"
+ android:layout_alignParentStart="true"
+ android:layout_marginEnd="20dp"
android:gravity="center" />
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_toRightOf="@+id/list_image"
+ android:layout_toEndOf="@+id/list_image"
android:textColor="@android:color/white"
android:textStyle="bold" />
@@ -55,7 +55,7 @@
android:layout_height="wrap_content"
android:layout_below="@id/title"
android:layout_marginTop="1dip"
- android:layout_toRightOf="@+id/list_image"
+ android:layout_toEndOf="@+id/list_image"
android:text="@string/crop_save"
android:textColor="@color/white"
android:textSize="10dip"