diff options
author | Yorke Lee <yorkelee@google.com> | 2014-04-24 03:04:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-04-24 03:04:25 +0000 |
commit | b0f66f7f0d013eaaa1aa045c9db076bf12e1eb74 (patch) | |
tree | 33dd00631f53353dd50a99b79a59150dd6d14125 | |
parent | 8af21dc5b5638f223a66197f36aa56111d7c3634 (diff) | |
parent | 1467993a7198348dd6e0be53d8e09e341f241912 (diff) |
Merge "Add shadows to call shortcut cards"
-rw-r--r-- | res/values/dimens.xml | 7 | ||||
-rw-r--r-- | src/com/android/dialer/list/ShortcutCardsAdapter.java | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index d9473617d..469677892 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -74,7 +74,7 @@ <!-- Z translation of the floating action button --> <dimen name="floating_action_button_translation_z">5dp</dimen> - <!-- Favorites tile and recent call log padding --> + <!-- Dimensions for speed dial tiles --> <dimen name="contact_tile_divider_width">1dp</dimen> <dimen name="contact_tile_info_button_height_and_width">36dp</dimen> <item name="contact_tile_height_to_width_ratio" type="dimen">67%</item> @@ -83,10 +83,15 @@ <dimen name="favorites_row_top_padding">1dp</dimen> <dimen name="favorites_row_bottom_padding">0dp</dimen> <dimen name="favorites_row_start_padding">1dp</dimen> + <!-- Padding from the last contact tile will provide the end padding. --> <dimen name="favorites_row_end_padding">0dp</dimen> <dimen name="favorites_row_undo_text_side_padding">32dp</dimen> + + <!-- Dimensions for most recent call shortcut cards --> + <dimen name="recent_call_log_item_translation_z">5dp</dimen> <dimen name="recent_call_log_item_padding">8dp</dimen> + <!-- Size of the star icon on the favorites tile. --> <dimen name="favorites_star_icon_size">20dp</dimen> diff --git a/src/com/android/dialer/list/ShortcutCardsAdapter.java b/src/com/android/dialer/list/ShortcutCardsAdapter.java index 4cca20b3d..0009ee57f 100644 --- a/src/com/android/dialer/list/ShortcutCardsAdapter.java +++ b/src/com/android/dialer/list/ShortcutCardsAdapter.java @@ -208,6 +208,8 @@ public class ShortcutCardsAdapter extends BaseAdapter { FrameLayout.LayoutParams.WRAP_CONTENT); params.setMargins(mCallLogPadding, mCallLogPadding, mCallLogPadding, mCallLogPadding); view.setLayoutParams(params); + view.setTranslationZ(getResources().getDimensionPixelSize( + R.dimen.recent_call_log_item_translation_z)); super.addView(view); } |