summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-02-03 08:31:10 -0800
committerJay Shrauner <shrauner@google.com>2014-03-04 12:17:24 -0800
commit27c57f5ec6421d8de15214c09114266b4a917bed (patch)
treea10e40800f315c989d945310900e3a40b4c3cea3 /res
parentef793edd768d25b43bc4ea597ae68fa0d742be74 (diff)
downloadandroid_packages_apps_Dialer-27c57f5ec6421d8de15214c09114266b4a917bed.tar.gz
android_packages_apps_Dialer-27c57f5ec6421d8de15214c09114266b4a917bed.tar.bz2
android_packages_apps_Dialer-27c57f5ec6421d8de15214c09114266b4a917bed.zip
Call History Affordances Swap
1. Swapped the intents for the primary view 2. Changed the icon for the secondary action button 3. Added a vertical divider line to separate the secondary action button from the primary view 4. Cleaned up the accessibility text Bug: 12800272 Change-Id: Ifd4ceff0d67b1587c4378e29be7344de50057a7d (cherry picked from commit 45ed3b5932ed590b45235d7b2befa736a95e7f75)
Diffstat (limited to 'res')
-rw-r--r--res/layout/call_log_list_item.xml42
-rw-r--r--res/values/dimens.xml7
-rw-r--r--res/values/strings.xml80
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 53d9c47e5..942698741 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 a0376a6e0..e84834113 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -435,6 +435,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.