diff options
| author | 2012-09-28 16:55:43 -0700 | |
|---|---|---|
| committer | 2012-09-28 16:55:44 -0700 | |
| commit | 2c22bb85f2f6233eb3986f37b92386000433c7aa (patch) | |
| tree | 5668a01a6321e3001dcbb468ef32eaf9c6bcfd05 | |
| parent | 4984ec7222d86a9b507a9961363bf50d2b72df1b (diff) | |
| parent | 5520ca7f2c24d92f91e91d18711d83d13a44c89f (diff) | |
Merge "Update Premium-SMS detection UI." into jb-mr1-dev
| -rw-r--r-- | core/res/res/layout/sms_short_code_confirmation_dialog.xml | 63 | ||||
| -rwxr-xr-x | core/res/res/values/strings.xml | 7 | ||||
| -rw-r--r-- | core/res/res/values/symbols.xml | 2 |
3 files changed, 51 insertions, 21 deletions
diff --git a/core/res/res/layout/sms_short_code_confirmation_dialog.xml b/core/res/res/layout/sms_short_code_confirmation_dialog.xml index ed08375e472d..ec39d97910e7 100644 --- a/core/res/res/layout/sms_short_code_confirmation_dialog.xml +++ b/core/res/res/layout/sms_short_code_confirmation_dialog.xml @@ -33,29 +33,54 @@ android:paddingLeft="16dip" android:paddingRight="16dip" android:paddingTop="8dip" - android:paddingBottom="8dip"/> + android:paddingBottom="16dip" /> - <LinearLayout android:id="@+id/sms_short_code_detail_layout" - android:layout_width="match_parent" + <TableLayout android:id="@+id/sms_short_code_detail_layout" + android:shrinkColumns="1" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:orientation="horizontal" - android:gravity="center_vertical" - android:minHeight="@dimen/alert_dialog_title_height" - android:layout_marginLeft="16dip" - android:layout_marginRight="16dip"> - <ImageView android:id="@+id/sms_short_code_coins_icon" + android:paddingLeft="16dip" + android:paddingRight="16dip"> + + <TableRow android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:paddingRight="8dip" - android:src="@null" /> - <TextView android:id="@+id/sms_short_code_detail_message" - style="?android:attr/textAppearanceMedium" + android:layout_height="wrap_content" > + + <ImageView android:id="@+id/sms_short_code_coins_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="8dip" + android:paddingRight="8dip" + android:src="@null" /> + <TextView android:id="@+id/sms_short_code_detail_message" android:layout_width="match_parent" android:layout_height="wrap_content" /> - </LinearLayout> + </TableRow> + + <TableRow + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + + <CheckBox android:id="@+id/sms_short_code_remember_choice_checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingRight="8dip" /> + <TextView android:id="@+id/sms_short_code_remember_choice_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/sms_short_code_remember_choice" /> + </TableRow> + + <TableRow + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + + <Space android:layout_gravity="fill" /> + <TextView android:id="@+id/sms_short_code_remember_undo_instruction" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </TableRow> + + </TableLayout> - <CheckBox android:id="@+id/sms_short_code_remember_choice_checkbox" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/sms_short_code_remember_choice" /> </LinearLayout> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 1b56c2926461..68a4d282304a 100755 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -3107,15 +3107,18 @@ <!-- The message text for the SMS short code confirmation dialog. [CHAR LIMIT=NONE] --> <string name="sms_short_code_confirm_message"><b><xliff:g id="app_name">%1$s</xliff:g></b> would like to send a message to <b><xliff:g id="dest_address">%2$s</xliff:g></b>.</string> <!-- Message details for the SMS short code confirmation dialog (possible premium short code). [CHAR LIMIT=NONE] --> - <string name="sms_short_code_details">This may cause charges on your mobile account.</string> + <string name="sms_short_code_details">This <font fgcolor="#ffffb060">may cause charges</font> on your mobile account.</string> <!-- Message details for the SMS short code confirmation dialog (premium short code). [CHAR LIMIT=NONE] --> - <string name="sms_premium_short_code_details">This will cause charges on your mobile account.</string> + <string name="sms_premium_short_code_details"><font fgcolor="#ffffb060">This will cause charges on your mobile account.</font></string> <!-- Text of the approval button for the SMS short code confirmation dialog. [CHAR LIMIT=30] --> <string name="sms_short_code_confirm_allow">Send</string> <!-- Text of the cancel button for the SMS short code confirmation dialog. [CHAR LIMIT=30] --> <string name="sms_short_code_confirm_deny">Cancel</string> <!-- Text of the checkbox for the SMS short code confirmation dialog to remember the user's choice. [CHAR LIMIT=40] --> <string name="sms_short_code_remember_choice">Remember my choice</string> + <!-- Text shown when remember checkbox is checked to inform the user how they may undo the setting. [CHAR LIMIT=40] --> + <string name="sms_short_code_remember_undo_instruction">You can change this later in Settings\u00A0>\u00A0Apps"</string> + <!-- Text of the approval button for the SMS short code confirmation dialog when checkbox is checked. [CHAR LIMIT=30] --> <string name="sms_short_code_confirm_always_allow">Always Allow</string> <!-- Text of the cancel button for the SMS short code confirmation dialog when checkbox is checked. [CHAR LIMIT=30] --> diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 966e457eea72..28abc98fab51 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -216,6 +216,7 @@ <java-symbol type="id" name="sms_short_code_detail_layout" /> <java-symbol type="id" name="sms_short_code_detail_message" /> <java-symbol type="id" name="sms_short_code_remember_choice_checkbox" /> + <java-symbol type="id" name="sms_short_code_remember_undo_instruction" /> <java-symbol type="attr" name="actionModeShareDrawable" /> <java-symbol type="attr" name="alertDialogCenterButtons" /> @@ -758,6 +759,7 @@ <java-symbol type="string" name="sms_short_code_confirm_message" /> <java-symbol type="string" name="sms_short_code_details" /> <java-symbol type="string" name="sms_premium_short_code_details" /> + <java-symbol type="string" name="sms_short_code_remember_undo_instruction" /> <java-symbol type="string" name="submit" /> <java-symbol type="string" name="sync_binding_label" /> <java-symbol type="string" name="sync_do_nothing" /> |