diff options
author | Brian Attwell <brianattwell@google.com> | 2014-12-04 16:25:33 -0800 |
---|---|---|
committer | Brian Attwell <brianattwell@google.com> | 2014-12-05 01:20:08 +0000 |
commit | 5fd8698d05fad275bde82b8a1fb139f786dc609e (patch) | |
tree | 9069e897aaaa3fbac764d9f1f2df73c5564bdfe2 /res/values | |
parent | 264808c83f132f60b6c9e8d6e16972fe6ad3e710 (diff) | |
download | packages_apps_Contacts-5fd8698d05fad275bde82b8a1fb139f786dc609e.tar.gz packages_apps_Contacts-5fd8698d05fad275bde82b8a1fb139f786dc609e.tar.bz2 packages_apps_Contacts-5fd8698d05fad275bde82b8a1fb139f786dc609e.zip |
Don't accidentally scroll QC off screen.
Behavior changes
1) Halt fling once it hits the top of the window
2) Add top EdgeEffect
3) Add springyness
These changes result in much simpler nested-scrolling
calculations.
UX may want to change some of the constants
after playing with this for a day. However, the
logic changes should remain unchanged.
Bug: 18571742
Change-Id: Icbc063beb2061bf7cd1e4401b16e604415140242
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/dimens.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index b31b5b9d8..d9e541af2 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -24,6 +24,14 @@ <dimen name="quickcontact_title_initial_margin">16dp</dimen> <!-- The ratio of width:height for the contact's photo in landscape --> <item name="quickcontact_landscape_photo_ratio" type="dimen" format="float">0.7</item> + <!-- How far QuickContacts can be dragged and released from the top of the window before we dismiss it. --> + <dimen name="quickcontact_dismiss_distance_on_release">40dp</dimen> + <!-- How far QuickContacts can be dragged from the top of the window before we dismiss it. --> + <dimen name="quickcontact_dismiss_distance_on_scroll">100dp</dimen> + <!-- When first flinging QuickContacts towards the top of the window if the fling is + predicted to scroll past the window top by less than this amount, then QuickContacts + snaps to the top of the window. --> + <dimen name="quickcontact_snap_to_top_slop_height">33dp</dimen> <!-- Padding of the rounded plus/minus/expand/collapse buttons in the editor --> <dimen name="editor_round_button_padding_left">16dip</dimen> |