summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-05-27 12:48:44 -0700
committerYorke Lee <yorkelee@google.com>2014-05-27 14:31:59 -0700
commit9ada157d1d6d69176730035f7e651500fc7f3c0a (patch)
tree8918813d4ce8547a116e8462ad81dfcedfbde34f /src
parentf6c86e3b64812407ca965497da9d739e319428af (diff)
Adjust card clipping specs
Also tweak some elevation specs per UX guidance Bug: 15196725 Change-Id: Ia0c1ecef7039f5ffb703877172fb632f56bf5530
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/list/ListsFragment.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java
index 2ff5a2a5b..229f7f3cc 100644
--- a/src/com/android/dialer/list/ListsFragment.java
+++ b/src/com/android/dialer/list/ListsFragment.java
@@ -126,12 +126,12 @@ public class ListsFragment extends Fragment implements CallLogQueryHandler.Liste
private PanelSlideListener mPanelSlideListener = new PanelSlideListener() {
@Override
public void onPanelSlide(View panel, float slideOffset) {
- // For every 1 percent that the panel is slid upwards, clip 2 percent from each edge
+ // For every 1 percent that the panel is slid upwards, clip 3 percent from each edge
// of the shortcut card, to achieve the animated effect of the shortcut card
// rapidly shrinking and disappearing from view when the panel is slid upwards.
// slideOffset is 1 when the shortcut card is fully exposed, and 0 when completely
// hidden.
- float ratioCardHidden = (1 - slideOffset) * 2f;
+ float ratioCardHidden = (1 - slideOffset) * 3f;
if (mShortcutCardsListView.getCount() > 0) {
SwipeableShortcutCard v =
(SwipeableShortcutCard) mShortcutCardsListView.getChildAt(0);