From 235fd16e5acbc7c72162e233ade178df53b9bbda Mon Sep 17 00:00:00 2001 From: Jimmy Shih Date: Tue, 3 Jan 2012 14:47:54 -0800 Subject: [PATCH] Support multiple lines on Send to Google CheckBox and RadioButtons - Center align the CheckBox to the ImageView - Note that to support line wrapping inside a TableLayout, need to set the layout_width to 0dp. --- .../res/layout/mytracks_send_to_google.xml | 122 +++++++----------- MyTracks/res/values/strings.xml | 2 - MyTracks/res/values/styles.xml | 22 ++++ 3 files changed, 66 insertions(+), 80 deletions(-) diff --git a/MyTracks/res/layout/mytracks_send_to_google.xml b/MyTracks/res/layout/mytracks_send_to_google.xml index 88fc3a5e9..3d75f6688 100644 --- a/MyTracks/res/layout/mytracks_send_to_google.xml +++ b/MyTracks/res/layout/mytracks_send_to_google.xml @@ -18,106 +18,72 @@ limitations under the License. android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical"> - - - + android:layout_width="fill_parent" + android:paddingLeft="10dp" + android:text="@string/send_google_title" + android:textColor="@color/white" + android:textSize="20sp"/> - - + + + + + + - - - - - - - + android:layout_marginLeft="10dp" + android:layout_width="0dp"> + + + - - - + android:src="@drawable/googledocs_icon" + style="@style/SendGoogleImageView"/> + - - - + android:src="@drawable/googledocs_icon" + style="@style/SendGoogleImageView"/> + diff --git a/MyTracks/res/values/strings.xml b/MyTracks/res/values/strings.xml index d1d7db4c8..206873896 100644 --- a/MyTracks/res/values/strings.xml +++ b/MyTracks/res/values/strings.xml @@ -1129,7 +1129,6 @@ limitations under the License. translation_description="When sending a track to Google Maps, the radio option to use an existing map as opposed to create a new map. - Character limit: ~21 (1 line) Screenshot: send_google_choose_service.png"> Use existing map @@ -1151,7 +1150,6 @@ limitations under the License. translation_description="When sending a track to Google Maps, the radio option to create a new map as opposed to use an existing map. - Character limit: ~21 (1 line) Screenshot: send_google_choose_service.png"> Create new map diff --git a/MyTracks/res/values/styles.xml b/MyTracks/res/values/styles.xml index e1896c5b8..868e3692c 100644 --- a/MyTracks/res/values/styles.xml +++ b/MyTracks/res/values/styles.xml @@ -107,6 +107,28 @@ limitations under the License. wrap_content + + + + + + + + +