diff options
author | Tyler Gunn <tgunn@google.com> | 2014-05-16 08:02:55 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2014-05-16 08:02:55 -0700 |
commit | cf5e001120916deb770ea65ae55730e456f92137 (patch) | |
tree | ee9325ff05763c527c9e31078cbff981bca01fd7 /res | |
parent | eead2a1eac894ff47cf10514c79cb717cc7db5b8 (diff) |
Adding call details affordance to call log.
Bug: 14876142
Change-Id: Ic4e806153156489473aeff91dbb9380302431ace
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/call_log_list_item.xml | 1 | ||||
-rw-r--r-- | res/layout/call_log_list_item_actions.xml | 25 | ||||
-rw-r--r-- | res/values/strings.xml | 19 |
3 files changed, 35 insertions, 10 deletions
diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml index b36101e55..ff6b7ba86 100644 --- a/res/layout/call_log_list_item.xml +++ b/res/layout/call_log_list_item.xml @@ -21,6 +21,7 @@ android:layout_height="wrap_content" android:id="@+id/call_log_list_item" android:orientation="vertical" + android:clipChildren="false" > <!-- Day group heading. Used to show a "today", "yesterday", "last week" or "other" heading above a group of call log entries. --> diff --git a/res/layout/call_log_list_item_actions.xml b/res/layout/call_log_list_item_actions.xml index eb4aea282..d4e98d0c0 100644 --- a/res/layout/call_log_list_item_actions.xml +++ b/res/layout/call_log_list_item_actions.xml @@ -42,7 +42,8 @@ android:textSize="@dimen/call_log_secondary_text_size" android:nextFocusLeft="@+id/primary_action_view" android:nextFocusRight="@+id/voicemail_action" - android:focusable="true"/> + android:focusable="true" + android:singleLine="true"/> <TextView android:id="@+id/voicemail_action" android:background="@drawable/action_button_background" @@ -57,7 +58,8 @@ android:textSize="@dimen/call_log_secondary_text_size" android:nextFocusLeft="@+id/call_back_action" android:nextFocusRight="@+id/delete_action" - android:focusable="true"/> + android:focusable="true" + android:singleLine="true"/> <TextView android:id="@+id/delete_action" android:background="@drawable/action_button_background" @@ -71,7 +73,24 @@ android:textColor="@color/call_log_action_delete_text" android:textSize="@dimen/call_log_secondary_text_size" android:nextFocusLeft="@+id/voicemail_action" + android:nextFocusRight="@+id/details_action" + android:focusable="true" + android:singleLine="true"/> + <TextView + android:id="@+id/details_action" + android:background="@drawable/action_button_background" + android:fontFamily="sans-serif-medium" + android:gravity="center" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:paddingLeft="@dimen/call_log_action_horizontal_padding" + android:paddingRight="@dimen/call_log_action_horizontal_padding" + android:text="@string/call_log_action_details" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="@dimen/call_log_secondary_text_size" + android:nextFocusLeft="@+id/delete_action" android:nextFocusRight="@+id/primary_action_view" - android:focusable="true"/> + android:focusable="true" + android:singleLine="true"/> </LinearLayout> </FrameLayout> diff --git a/res/values/strings.xml b/res/values/strings.xml index 4215f5367..04c951b98 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -429,13 +429,6 @@ --> <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. @@ -684,6 +677,12 @@ [CHAR LIMIT=30] --> <string name="call_log_action_voicemail">LISTEN</string> + <!-- Button text for the "DETAILS" button displayed underneath an entry in the call log. + Tapping navigates the user to the call details screen where the user can view details for + the call log entry. + [CHAR LIMIT=30] --> + <string name="call_log_action_details">DETAILS</string> + <!-- String describing an incoming missed call entry in the call log. Note: AccessibilityServices uses this attribute to announce what the view represents. [CHAR LIMIT=NONE] --> @@ -718,6 +717,12 @@ [CHAR LIMIT=NONE] --> <string name="description_delete_action">Delete call log entry for <xliff:g id="nameOrNumber" example="John Smith">%1$s</xliff:g></string> + <!-- String describing the "details" action for an entry in the call log. The details action + displays the call details screen for an entry in the call log. This shows the calls to + and from the specified number associated with the call log entry. + [CHAR LIMIT=NONE] --> + <string name="description_details_action">Call details for <xliff:g id="nameOrNumber" example="John Smith">%1$s</xliff:g></string> + <!-- Toast message which appears when a call log entry is deleted. [CHAR LIMIT=NONE] --> <string name="toast_entry_removed">Call log entry deleted.</string> |