diff options
author | Owen Lin <owenlin@google.com> | 2009-11-11 11:21:46 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2009-12-01 14:20:05 +0800 |
commit | ba4a1f660c8e7ca16dc5b2fabbf9d7466810a0d7 (patch) | |
tree | 2ee03447d13672757ed4ecdb0e79564ac335d306 /res/layout/on_screen_submenu_item.xml | |
parent | 4ddee78a1507b3c067745023bd2330b866b8aaf9 (diff) | |
download | LegacyCamera-ba4a1f660c8e7ca16dc5b2fabbf9d7466810a0d7.zip LegacyCamera-ba4a1f660c8e7ca16dc5b2fabbf9d7466810a0d7.tar.gz LegacyCamera-ba4a1f660c8e7ca16dc5b2fabbf9d7466810a0d7.tar.bz2 |
Layout the menu item of second level on-screen menu.
http://b/issue?id=2203704
Change-Id: I4e7f455eb037cb1cf60e85b338229c83d62a99f2
Diffstat (limited to 'res/layout/on_screen_submenu_item.xml')
-rw-r--r-- | res/layout/on_screen_submenu_item.xml | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/res/layout/on_screen_submenu_item.xml b/res/layout/on_screen_submenu_item.xml index 8e0470e..0cb6660 100644 --- a/res/layout/on_screen_submenu_item.xml +++ b/res/layout/on_screen_submenu_item.xml @@ -26,14 +26,27 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0" /> - <TextView android:id="@+id/title" - android:layout_width="wrap_content" + <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" - android:maxLines="2" - android:textAppearance="?android:attr/textAppearanceLarge" - android:ellipsize="end" - android:fadingEdge="horizontal" /> + android:gravity="center_vertical" + android:minHeight="?android:attr/listPreferredItemHeight"> + <TextView android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:maxLines="2" + android:textAppearance="?android:attr/textAppearanceLarge" + android:ellipsize="end" + android:fadingEdge="horizontal" /> + <TextView android:id="@+id/summary" + android:visibility='gone' + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/title" + android:layout_alignLeft="@id/title" + android:textAppearance="?android:attr/textAppearanceSmall" + android:singleLine="true" /> + </RelativeLayout> <RadioButton android:id="@+id/radio_button" android:focusable="false" android:clickable="false" |