diff options
author | Tony Wickham <twickham@google.com> | 2019-01-10 18:21:44 -0800 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2019-01-28 11:37:33 -0800 |
commit | 18759647f0e3af23b69c8bdfa60c97a53c97f878 (patch) | |
tree | 8f65ba43bebdefe2e5ad067db642eaee05ebf866 /quickstep/res | |
parent | 7eebfc564982bdb64ea34d04f0955647dc40192a (diff) | |
download | android_packages_apps_Trebuchet-18759647f0e3af23b69c8bdfa60c97a53c97f878.tar.gz android_packages_apps_Trebuchet-18759647f0e3af23b69c8bdfa60c97a53c97f878.tar.bz2 android_packages_apps_Trebuchet-18759647f0e3af23b69c8bdfa60c97a53c97f878.zip |
Swipe up to go home, swipe and hold to go to overview
- Pause (swipe and hold) detection based on velocity and acceleration,
so it feels immediately responsive
- Don't show shelf during swipe; peek when swipe pauses
- Disallow long swipe
- If swiping to go home (we didn't detect a pause), animate window and
launcher together (not final animation, but mechanism is in place)
- Guarded by SWIPE_HOME flag
Bug: 111926330
Change-Id: Ie4af04517c6688e3d649c2971a1aad197837cb3b
Diffstat (limited to 'quickstep/res')
-rw-r--r-- | quickstep/res/values/dimens.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/quickstep/res/values/dimens.xml b/quickstep/res/values/dimens.xml index 8d62ab8e1..04fd59ce0 100644 --- a/quickstep/res/values/dimens.xml +++ b/quickstep/res/values/dimens.xml @@ -30,9 +30,16 @@ loading full resolution screenshots. --> <dimen name="recents_fast_fling_velocity">600dp</dimen> + <!-- These velocities are in dp / s --> <dimen name="quickstep_fling_threshold_velocity">500dp</dimen> <dimen name="quickstep_fling_min_velocity">250dp</dimen> + <!-- These speeds are in dp / ms --> + <dimen name="motion_pause_detector_speed_very_slow">0.0285dp</dimen> + <dimen name="motion_pause_detector_speed_somewhat_fast">0.285dp</dimen> + <dimen name="motion_pause_detector_speed_fast">0.5dp</dimen> + <dimen name="motion_pause_detector_min_displacement">48dp</dimen> + <!-- Launcher app transition --> <dimen name="content_trans_y">50dp</dimen> <dimen name="workspace_trans_y">50dp</dimen> |