From 45ed3b5932ed590b45235d7b2befa736a95e7f75 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Mon, 3 Feb 2014 08:31:10 -0800 Subject: 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 Change-Id: Ifd4ceff0d67b1587c4378e29be7344de50057a7d --- res/layout/call_log_list_item.xml | 42 +++- res/values/dimens.xml | 7 + res/values/strings.xml | 80 +++++++ src/com/android/dialer/PhoneCallDetailsHelper.java | 54 +++-- src/com/android/dialer/calllog/CallLogAdapter.java | 52 +++-- .../android/dialer/calllog/CallLogFragment.java | 2 +- .../dialer/calllog/CallLogListItemHelper.java | 203 +++++++++++++++-- .../dialer/calllog/CallLogListItemViews.java | 12 +- .../android/dialer/list/PhoneFavoriteFragment.java | 2 +- src/com/android/dialerbind/ObjectFactory.java | 14 +- tests/AndroidManifest.xml | 1 + .../dialer/calllog/CallLogFragmentTest.java | 28 ++- .../dialer/calllog/CallLogListItemHelperTest.java | 245 +++++++++++++++++++-- 13 files changed, 632 insertions(+), 110 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 @@ /> - + + android:orientation="horizontal" + android:gravity="center_vertical" + > + + + + + 64dip 24dip 2dip + + 8dp + + + 1dp Call %1$s + + Contact details for %1$s + + + Call details + + + New voicemail. + + + %1$s calls. + + + + Return missed call from %1$s %2$s %3$s + + + + Return answered call from %1$s %2$s %3$s + + + Missed call from %1$s %2$s %3$s + + + + Answered call from %1$s %2$s %3$s + + + Call %1$s %2$s. Last called %3$s. + + + Call %1$s %2$s. Called %3$s. +