diff options
Diffstat (limited to 'java/com/android/dialer/app/res')
4 files changed, 56 insertions, 50 deletions
diff --git a/java/com/android/dialer/app/res/layout/call_log_list_item.xml b/java/com/android/dialer/app/res/layout/call_log_list_item.xml index a24552ba4..1b776b42c 100644 --- a/java/com/android/dialer/app/res/layout/call_log_list_item.xml +++ b/java/com/android/dialer/app/res/layout/call_log_list_item.xml @@ -193,36 +193,27 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" - android:gravity="start" + android:gravity="start|center_vertical" android:focusable="true" android:text="@string/voicemail_transcription_rating"/> - <TextView - style="@style/TranscriptionQualityRatingLink" + <ImageView + style="@style/TranscriptionQualityRatingIcon" android:id="@+id/voicemail_transcription_rating_good" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:gravity="end" - android:focusable="true" - android:text="@string/voicemail_transcription_rating_good"/> - - <TextView - style="@style/TranscriptionQualityRating" - android:id="@+id/voicemail_transcription_rating_separator" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="end" + android:gravity="end|center_vertical" android:focusable="true" - android:text="@string/voicemail_transcription_rating_separator"/> + android:src="@drawable/quantum_ic_thumb_up_grey600_24"/> - <TextView - style="@style/TranscriptionQualityRatingLink" + <ImageView + style="@style/TranscriptionQualityRatingIcon" android:id="@+id/voicemail_transcription_rating_bad" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:gravity="end" + android:gravity="end|center_vertical" android:focusable="true" - android:text="@string/voicemail_transcription_rating_bad"/> + android:src="@drawable/quantum_ic_thumb_down_grey600_24"/> </LinearLayout> diff --git a/java/com/android/dialer/app/res/values/colors.xml b/java/com/android/dialer/app/res/values/colors.xml index 84a381f21..e79c5c5ed 100644 --- a/java/com/android/dialer/app/res/values/colors.xml +++ b/java/com/android/dialer/app/res/values/colors.xml @@ -80,4 +80,7 @@ <color name="blocked_number_disabled_emergency_background_color">#E0E0E0</color> <color name="add_blocked_number_icon_color">#bdbdbd</color> + <color name="voicemail_donation_promo_positive_button_text_color">#FF2A56C6</color> + <color name="voicemail_donation_promo_negative_button_text_color">#FF757575</color> + </resources> diff --git a/java/com/android/dialer/app/res/values/strings.xml b/java/com/android/dialer/app/res/values/strings.xml index d4f3f8180..2d5542bbf 100644 --- a/java/com/android/dialer/app/res/values/strings.xml +++ b/java/com/android/dialer/app/res/values/strings.xml @@ -675,33 +675,38 @@ [CHAR LIMIT=64] --> <string name="voicemail_transcription_failed_no_speech">Transcript not available. No speech detected.</string> - <!-- Prompt asking the user to rate the quality of the voicemail transcription [CHAR LIMIT=30] - voicemail_transcription_rating, voicemail_transcription_rating_good, - voicemail_transcription_rating_separator and voicemail_transcription_rating_bad are - used together to form the rating prompt: 'Rate transcription quality Good or Bad' - where 'Good' and 'Bad' are clickable links. --> - <string name="voicemail_transcription_rating">Rate transcription quality</string> + <!-- Title of voicemail donation promo dialog, show after clicking a 'thumbs up' rating icon + [CHAR LIMIT=64] --> + <string name="voicemail_donation_promo_good_title">Thanks! Would you like to help us improve transcriptions?</string> + + <!-- Title of voicemail donation promo dialog, show after clicking a 'thumbs up' rating icon + [CHAR LIMIT=64] --> + <string name="voicemail_donation_promo_bad_title">Sorry. Would you like to help us improve transcriptions?</string> + + <!-- Content of voicemail donation promo dialog + [CHAR LIMIT=NONE] --> + <string name="voicemail_donation_promo_content"> + Let Google review your voicemail messages to improve transcription quality. Your + voicemail messages will not be tied to your Google Account. + </string> - <!-- Rating choice indicating that the voicemail transcription was good [CHAR LIMIT=10] - voicemail_transcription_rating, voicemail_transcription_rating_good, - voicemail_transcription_rating_separator and voicemail_transcription_rating_bad are - used together to form the rating prompt: 'Rate transcription quality Good or Bad' - where 'Good' and 'Bad' are clickable links. --> - <string name="voicemail_transcription_rating_good">Good</string> - - <!-- Rating choice indicating that the voicemail transcription was bad [CHAR LIMIT=10] - voicemail_transcription_rating, voicemail_transcription_rating_good, - voicemail_transcription_rating_separator and voicemail_transcription_rating_bad are - used together to form the rating prompt: 'Rate transcription quality Good or Bad' - where 'Good' and 'Bad' are clickable links. --> - <string name="voicemail_transcription_rating_bad">Bad</string> - - <!-- Separator between the good and bad transcription rating choices [CHAR LIMIT=10] - voicemail_transcription_rating, voicemail_transcription_rating_good, - voicemail_transcription_rating_separator and voicemail_transcription_rating_bad are - used together to form the rating prompt: 'Rate transcription quality Good or Bad' - where 'Good' and 'Bad' are clickable links. --> - <string name="voicemail_transcription_rating_separator"> or </string> + <!-- Text for a 'learn more' link at the end of the voicemail donation promo dialog content --> + <string name="voicemail_donation_promo_learn_more">Learn more</string> + + <!-- TODO(mdooley): get real url --> + <string translatable="false" name="voicemail_donation_promo_learn_more_url">https:www.google.com</string> + + <!-- Label for the voicemail donation promo dialog opt-in button + [CHAR LIMIT=20] --> + <string name="voicemail_donation_promo_opt_in">Yes, I\'m in</string> + + <!-- Label for the voicemail donation promo dialog opt-out button + [CHAR LIMIT=20] --> + <string name="voicemail_donation_promo_opt_out">No thanks</string> + + <!-- Prompt asking the user to rate the quality of the voicemail transcription + [CHAR LIMIT=30] --> + <string name="voicemail_transcription_rating">Rate transcription quality</string> <!-- Message displayed after user has rated a voicemail transcription [CHAR LIMIT=30] --> <string name="voicemail_transcription_rating_thanks">Thanks for your feedback</string> diff --git a/java/com/android/dialer/app/res/values/styles.xml b/java/com/android/dialer/app/res/values/styles.xml index b275cecd1..869f1276d 100644 --- a/java/com/android/dialer/app/res/values/styles.xml +++ b/java/com/android/dialer/app/res/values/styles.xml @@ -258,15 +258,22 @@ <style name="TranscriptionQualityRating"> <item name="android:textColor">@color/call_log_voicemail_transcript_branding_color</item> <item name="android:textSize">@dimen/call_log_voicemail_transcription_text_size</item> + <item name="android:textStyle">italic</item> + <item name="android:paddingRight">20dp</item> + <item name="android:minHeight">56dp</item> </style> - <style name="TranscriptionQualityRatingLink"> - <item name="android:textColor">@color/call_log_voicemail_transcript_rating_color</item> - <item name="android:textSize">@dimen/call_log_voicemail_transcription_text_size</item> + <style name="TranscriptionQualityRatingIcon"> <item name="android:paddingTop">8dp</item> <item name="android:paddingBottom">8dp</item> - <item name="android:paddingLeft">12dp</item> - <item name="android:paddingRight">12dp</item> - <item name="android:minHeight">48dp</item> + <item name="android:paddingLeft">16dp</item> + <item name="android:paddingRight">16dp</item> + <item name="android:minHeight">56dp</item> </style> + + <style name="PromoLinkStyle"> + <item name="android:textColor">@color/dialer_theme_color</item> + <item name="android:fontFamily">"sans-serif-medium"</item> + </style> + </resources> |