diff options
author | Winson Chung <winsonc@google.com> | 2012-02-21 15:48:35 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2012-02-23 10:32:03 -0800 |
commit | 867ca62c0e4b811d46734ff940d59c7a787525c8 (patch) | |
tree | f5551fdbf3038f1c4e5fae8ac3463a078404e687 /res | |
parent | 7a326648c54922c60c32088e173c93068a82d107 (diff) | |
download | android_packages_apps_Trebuchet-867ca62c0e4b811d46734ff940d59c7a787525c8.tar.gz android_packages_apps_Trebuchet-867ca62c0e4b811d46734ff940d59c7a787525c8.tar.bz2 android_packages_apps_Trebuchet-867ca62c0e4b811d46734ff940d59c7a787525c8.zip |
Fading out workspace when dragging to higlight dragged object.
Change-Id: I540ce145168a65a029d820d6c14a1e3070f8a5b0
Diffstat (limited to 'res')
-rw-r--r-- | res/values-sw600dp/dimens.xml | 2 | ||||
-rw-r--r-- | res/values/config.xml | 4 | ||||
-rw-r--r-- | res/values/dimens.xml | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml index 2d72e1041..81fe13bf2 100644 --- a/res/values-sw600dp/dimens.xml +++ b/res/values-sw600dp/dimens.xml @@ -74,7 +74,7 @@ <dimen name="dragViewOffsetY">-12dp</dimen> <!-- When dragging an item, how much bigger (fixed dps) the dragged view should be. If 0, it will not be scaled at all. --> - <dimen name="dragViewScale">12dp</dimen> + <dimen name="dragViewScale">8dp</dimen> <!-- Folders --> <!-- The size of the image which sits behind the preview of the folder contents --> diff --git a/res/values/config.xml b/res/values/config.xml index 70e65c9ac..259385f51 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -71,6 +71,10 @@ <!-- The distance at which the animation should take the max duration --> <integer name="config_dropAnimMaxDist">800</integer> + <!-- Properties controlling the workspace fade-out during dragging --> + <integer name="config_dragFadeOutAlpha">80</integer> + <integer name="config_dragFadeOutDuration">250</integer> + <!-- Workspace screens are cached to bitmaps only when they're smaller than a certain size (maxScaleForUsingWorkspaceScreenBitmapCache), since the bitmap cache itself is smaller than the view itself (workspaceScreenBitmapCacheScale) --> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c4a66ac1f..c6dfb49af 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -112,7 +112,7 @@ <dimen name="dragViewOffsetY">-8dp</dimen> <!-- When dragging an item, how much bigger (fixed dps) the dragged view should be. If 0, it will not be scaled at all. --> - <dimen name="dragViewScale">12dp</dimen> + <dimen name="dragViewScale">8dp</dimen> <!-- Padding applied to AppWidgets --> <dimen name="app_widget_preview_padding_left">8dp</dimen> |