From 6e765f9a71b450809c4916a5d5562cdc1372a39a Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 21 May 2014 18:05:56 -0700 Subject: Tidy up call log shadow/touch interactions. - Constrain the recents list footer ripple to its dimensions. - Eliminate bottom margin on the call log list items. - Changed translationZ on expand to apply to the call log list item instead of just its primary action view. - Adjust the outline clipping so that a shadow doesn't appear under the day group header, now that the translation is applied to the entire list item. - Instantiated a number of fixed property values in onCreate() in the CallLogFragment, instead of whenever they're needed. Bug: 15165669 Change-Id: I5ed81ae49fb0c3f6eed360f247c1fd67278a628c --- res/drawable/call_log_background.xml | 4 ++-- res/drawable/recent_lists_footer_background.xml | 23 +++++++++++++++++++++++ res/layout/call_log_fragment.xml | 1 - res/layout/call_log_list_item.xml | 23 ++++++++++------------- res/layout/recents_list_footer.xml | 2 +- res/values/dimens.xml | 6 +++--- 6 files changed, 39 insertions(+), 20 deletions(-) create mode 100644 res/drawable/recent_lists_footer_background.xml (limited to 'res') diff --git a/res/drawable/call_log_background.xml b/res/drawable/call_log_background.xml index c0c488902..4857fb54a 100644 --- a/res/drawable/call_log_background.xml +++ b/res/drawable/call_log_background.xml @@ -15,5 +15,5 @@ limitations under the License. --> + android:tint="?android:attr/colorControlHighlight" + android:pinned="false" /> \ No newline at end of file diff --git a/res/drawable/recent_lists_footer_background.xml b/res/drawable/recent_lists_footer_background.xml new file mode 100644 index 000000000..fccce7b7d --- /dev/null +++ b/res/drawable/recent_lists_footer_background.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/res/layout/call_log_fragment.xml b/res/layout/call_log_fragment.xml index 7b6aa28bc..fb7ed2a16 100644 --- a/res/layout/call_log_fragment.xml +++ b/res/layout/call_log_fragment.xml @@ -71,7 +71,6 @@ android:background="@color/background_dialer_list_items" android:divider="@null" android:nestedScrollingEnabled="true" - android:clipChildren="false" /> - + android:background="@color/background_dialer_list_items" > + + + android:gravity="center_vertical" > + android:nextFocusLeft="@+id/quick_contact_photo" > + android:background="@drawable/recent_lists_footer_background" /> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 6d7aa84fb..f399e368e 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -30,7 +30,7 @@ 54dp 4dip 8dip - 8dip + 8dp 24dip 56dip 40dip @@ -130,8 +130,8 @@ 14sp 48dp - - 4dp + + 4dp 16dp -- cgit v1.2.3