diff options
author | Tony Wickham <twickham@google.com> | 2016-03-28 16:56:30 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2016-03-29 12:41:14 -0700 |
commit | 855b1b5fff5f6f03a641b3b6973780a24fd9641e (patch) | |
tree | b33415fbe8d3fac286c093549cb26f220a6099ab /res/values/dimens.xml | |
parent | 1f5d3ccc253ab0e4b2abb911a83e7f4d33b6869f (diff) | |
download | android_packages_apps_Trebuchet-855b1b5fff5f6f03a641b3b6973780a24fd9641e.tar.gz android_packages_apps_Trebuchet-855b1b5fff5f6f03a641b3b6973780a24fd9641e.tar.bz2 android_packages_apps_Trebuchet-855b1b5fff5f6f03a641b3b6973780a24fd9641e.zip |
Add distance threshold for dragged items before accepted by targets.
With the new spring-loaded workspace, items are often very close to
button drop targets (e.g. App Info) at the start of a drag. This
threshold makes it less likely to accidentally drop on a target.
Bug: 24099531
Change-Id: I4912ceeb0b63958816177c7bde073e825176d987
Diffstat (limited to 'res/values/dimens.xml')
-rw-r--r-- | res/values/dimens.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index a70d3b806..7d8f6f6cf 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -123,6 +123,9 @@ <dimen name="drop_target_drag_padding">14dp</dimen> <dimen name="drop_target_text_size">14sp</dimen> + <!-- the distance an icon must be dragged before button drop targets accept it --> + <dimen name="drag_distanceThreshold">30dp</dimen> + <!-- the area at the edge of the screen that makes the workspace go left or right while you're dragging. --> <dimen name="scroll_zone">20dp</dimen> |