Merge "Update Premium-SMS detection UI." into jb-mr1-dev

This commit is contained in:
Robert Greenwalt
2012-09-28 16:55:43 -07:00
committed by Android (Google) Code Review
3 changed files with 51 additions and 21 deletions

View File

@@ -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>

View File

@@ -3107,15 +3107,18 @@
<!-- The message text for the SMS short code confirmation dialog. [CHAR LIMIT=NONE] -->
<string name="sms_short_code_confirm_message">&lt;b><xliff:g id="app_name">%1$s</xliff:g>&lt;/b> would like to send a message to &lt;b><xliff:g id="dest_address">%2$s</xliff:g>&lt;/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] -->

View File

@@ -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" />