diff options
author | likaid <likaid@codeaurora.org> | 2015-08-12 10:28:26 +0800 |
---|---|---|
committer | likaid <likaid@codeaurora.org> | 2015-08-12 10:28:26 +0800 |
commit | 875711efe5ebbd1cd1ed05ee3ff56a0ecdfda0ec (patch) | |
tree | c680fe71fecbae11c23806f9e4f03d539cc62d2a /res | |
parent | 6cdb67062e0b5438164301506bfdae4095a3da59 (diff) | |
download | android_packages_apps_Snap-875711efe5ebbd1cd1ed05ee3ff56a0ecdfda0ec.tar.gz android_packages_apps_Snap-875711efe5ebbd1cd1ed05ee3ff56a0ecdfda0ec.tar.bz2 android_packages_apps_Snap-875711efe5ebbd1cd1ed05ee3ff56a0ecdfda0ec.zip |
SnapdragonCamera: Fix submenu icon not display in RTL
Layout of submenu is not corret in RTL.
Change linear layout to relative layout for this case.
CRs-Fixed: 885928
Change-Id: Iaa7644cc4ccbf436cbd148a485abab2b9155ba5d
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/list_sub_menu_item.xml | 3 | ||||
-rw-r--r-- | res/values/styles.xml | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/res/layout/list_sub_menu_item.xml b/res/layout/list_sub_menu_item.xml index f2b043692..db417d689 100644 --- a/res/layout/list_sub_menu_item.xml +++ b/res/layout/list_sub_menu_item.xml @@ -36,12 +36,15 @@ android:layout_width="@dimen/setting_item_icon_width" android:layout_height="@dimen/setting_item_icon_width" android:layout_marginRight="@dimen/setting_item_list_margin" + android:layout_alignParentLeft="true" + android:layout_centerInParent="true" android:adjustViewBounds="true" android:scaleType="fitCenter" /> <TextView android:id="@+id/text" style="@style/CustomSettingItemTitle" + android:layout_toRightOf="@+id/image" android:shadowColor="@android:color/transparent" android:shadowDx="1" android:shadowDy="1" diff --git a/res/values/styles.xml b/res/values/styles.xml index f893aaa48..c6b99624e 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -85,7 +85,7 @@ <item name="android:gravity">left|center_vertical</item> <item name="android:singleLine">true</item> <item name="android:layout_weight">1</item> - <item name="android:layout_width">0dp</item> + <item name="android:layout_width">match_parent</item> <item name="android:layout_height">match_parent</item> </style> <style name="SettingItemTitle"> |