diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/call_log_list_item.xml | 42 | ||||
-rw-r--r-- | res/values/dimens.xml | 7 | ||||
-rw-r--r-- | res/values/strings.xml | 80 |
3 files changed, 118 insertions, 11 deletions
diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml index 1d368f63d..15d7a9275 100644 --- a/res/layout/call_log_list_item.xml +++ b/res/layout/call_log_list_item.xml @@ -114,18 +114,38 @@ /> </LinearLayout> </LinearLayout> - <ImageButton - android:id="@+id/secondary_action_icon" - android:layout_width="@dimen/call_log_call_action_width" + <!-- Linear layout to house a vertical separator line and the + secondary action button. Used as a convenience to hide both + the separator and action button at the same time. --> + <LinearLayout + android:id="@+id/secondary_action_view" + android:layout_width="wrap_content" android:layout_height="match_parent" - android:paddingStart="@dimen/call_log_inner_margin" - android:paddingTop="@dimen/call_log_inner_margin" - android:paddingBottom="@dimen/call_log_inner_margin" - android:paddingEnd="@dimen/call_log_inner_margin" - android:scaleType="center" - android:background="?android:attr/selectableItemBackground" - android:nextFocusLeft="@id/primary_action_view" - /> + android:orientation="horizontal" + android:gravity="center_vertical" + > + <!-- Thin vertical divider to visually separate the secondary action button --> + <View + android:id="@+id/vertical_divider" + android:layout_width="@dimen/call_log_list_item_vertical_divider_width" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/call_log_list_item_vertical_divider_margin" + android:layout_marginBottom="@dimen/call_log_list_item_vertical_divider_margin" + android:background="?android:attr/dividerVertical"/> + <!-- The secondary action button; either play voicemail or call details. --> + <ImageButton + android:id="@+id/secondary_action_icon" + android:layout_width="@dimen/call_log_call_action_width" + android:layout_height="match_parent" + android:paddingStart="@dimen/call_log_inner_margin" + android:paddingTop="@dimen/call_log_inner_margin" + android:paddingBottom="@dimen/call_log_inner_margin" + android:paddingEnd="@dimen/call_log_inner_margin" + android:scaleType="center" + android:background="?android:attr/selectableItemBackground" + android:nextFocusLeft="@id/primary_action_view" + /> + </LinearLayout> </LinearLayout> <TextView diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 17439521b..e84b18a6a 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -43,6 +43,13 @@ <dimen name="call_log_list_contact_photo_size">64dip</dimen> <dimen name="call_detail_contact_name_margin">24dip</dimen> <dimen name="call_detail_button_spacing">2dip</dimen> + <!-- Defines the vertical margin for the vertical separator between + the main area of a call log entry and the secondary action button. --> + <dimen name="call_log_list_item_vertical_divider_margin">8dp</dimen> + + <!-- Defines the width of the vertical separator between + the main area of a call log entry and the secondary action button. --> + <dimen name="call_log_list_item_vertical_divider_width">1dp</dimen> <!-- Layout weight values for dialpad screen. These layouts will be used in one LinearLayout (dialpad_fragment.xml), configuring dialpad screen's vertical diff --git a/res/values/strings.xml b/res/values/strings.xml index b28c8eadf..c8aa37f7e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -441,6 +441,86 @@ --> <string name="description_call">Call <xliff:g id="name">%1$s</xliff:g></string> + <!-- String describing the button to access the contact details for a name or number. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_contact_details">Contact details for <xliff:g id="nameOrNumber">%1$s</xliff:g></string> + + <!-- String describing the button to access call details in the call log. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_call_details">Call details</string> + + <!-- String indicating a call log entry has an associated voicemail. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_new_voicemail">New voicemail.</string> + + <!-- String indicating the number of calls to/from a caller in the call log. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_num_calls"><xliff:g id="numberOfCalls">%1$s</xliff:g> calls.</string> + + + <!-- Call history description for a missed call from a caller. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_return_missed_call">Return missed call from <xliff:g id="nameOrNumber">%1$s</xliff:g> <xliff:g id="typeOrLocation">%2$s</xliff:g> <xliff:g id="timeOfCall">%3$s</xliff:g></string> + + + <!-- Call history description for an answered call for a caller. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_return_answered_call">Return answered call from <xliff:g id="nameOrNumber">%1$s</xliff:g> <xliff:g id="typeOrLocation">%2$s</xliff:g> <xliff:g id="timeOfCall">%3$s</xliff:g></string> + + <!-- Call history description for a missed call from an unknown caller. + Drops the "return" part of description_return_missed_call since it is not + possible to actually call an unknown number. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_unknown_missed_call">Missed call from <xliff:g id="nameOrNumber">%1$s</xliff:g> <xliff:g id="typeOrLocation">%2$s</xliff:g> <xliff:g id="timeOfCall">%3$s</xliff:g></string> + + + <!-- Call history description for an answered call from an unknown caller. + Drops the "return" part of description_return_answered_call since it is not + possible to actually call an unknown number. + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_unknown_answered_call">Answered call from <xliff:g id="nameOrNumber">%1$s</xliff:g> <xliff:g id="typeOrLocation">%2$s</xliff:g> <xliff:g id="timeOfCall">%3$s</xliff:g></string> + + <!-- String describing an outgoing call entry in the call log. Used to indicate that + a call will be made to the specified caller. Used when there are multiple calls to/from + the caller. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_call_last_multiple">Call <xliff:g id="nameOrNumber">%1$s</xliff:g> <xliff:g id="typeOrLocation">%2$s</xliff:g>. Last called <xliff:g id="timeOfCall">%3$s</xliff:g>.</string> + + <!-- String describing an outgoing call entry in the call log. Used to indicate that + a call will be made to the specified caller. Used when there is only a single call + related to/from the caller. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <string name="description_call_last">Call <xliff:g id="nameOrNumber">%1$s</xliff:g> <xliff:g id="typeOrLocation">%2$s</xliff:g>. Called <xliff:g id="timeOfCall">%3$s</xliff:g>.</string> + <!-- String describing the button to SMS a number or contact. |