summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2011-03-28 13:18:42 -0700
committerAdam Cohen <adamcohen@google.com>2011-03-28 14:16:36 -0700
commit8878a32f26b7e6c287d970950526cd0e6eabb21d (patch)
tree1a85a19b15157dea17e6be848a5804a955c2987f /res
parent99e8b40b374d49baabf0c4f4e4278ac25828899b (diff)
downloadandroid_packages_apps_Trebuchet-8878a32f26b7e6c287d970950526cd0e6eabb21d.tar.gz
android_packages_apps_Trebuchet-8878a32f26b7e6c287d970950526cd0e6eabb21d.tar.bz2
android_packages_apps_Trebuchet-8878a32f26b7e6c287d970950526cd0e6eabb21d.zip
Fixing drag icon location on non-xlarge devices
Change-Id: I7897f67e145818866a51c6a50d4d3e59674b08b4
Diffstat (limited to 'res')
-rw-r--r--res/values-xlarge/config.xml5
-rw-r--r--res/values-xlarge/dimens.xml5
-rw-r--r--res/values/config.xml6
-rw-r--r--res/values/dimens.xml5
4 files changed, 10 insertions, 11 deletions
diff --git a/res/values-xlarge/config.xml b/res/values-xlarge/config.xml
index 56c7bc688..b9880e3ea 100644
--- a/res/values-xlarge/config.xml
+++ b/res/values-xlarge/config.xml
@@ -53,11 +53,6 @@
Should be an even number, for pixel alignment. -->
<integer name="config_dragViewExtraPixels">0</integer>
- <!-- When dragging items on the workspace, the number of pixels by which the position of
- the drag view should be offset from the position of the original view. -->
- <integer name="config_dragViewOffsetX">0</integer>
- <integer name="config_dragViewOffsetY">-12</integer>
-
<!-- When items are dropped on the mini screens in customize mode, we have a bounce animation
of the bright green hover outline, and then fade out the outline at the end. These are
the values used in that animation -->
diff --git a/res/values-xlarge/dimens.xml b/res/values-xlarge/dimens.xml
index 2b9769716..fffa0f231 100644
--- a/res/values-xlarge/dimens.xml
+++ b/res/values-xlarge/dimens.xml
@@ -62,4 +62,9 @@
<!-- How much the content view of an alert dialog should be inset (currently used
for the WallpaperChooser in XLarge mode) -->
<dimen name="alert_dialog_content_inset">0dp</dimen>
+
+ <!-- When dragging items on the workspace, the number of dps by which the position of
+ the drag view should be offset from the position of the original view. -->
+ <dimen name="dragViewOffsetX">0dp</dimen>
+ <dimen name="dragViewOffsetY">-12dp</dimen>
</resources>
diff --git a/res/values/config.xml b/res/values/config.xml
index c56a8cec2..ec01fa840 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -12,12 +12,6 @@
Should be an even number, for pixel alignment. -->
<integer name="config_dragViewExtraPixels">40</integer>
- <!-- When dragging items on the workspace, the number of pixels by which the position of
- the drag view should be offset from the position of the original view.
- Setting to 1/2 of config_dragViewExtraPixels keeps it centered on its old position. -->
- <integer name="config_dragViewOffsetX">20</integer>
- <integer name="config_dragViewOffsetY">20</integer>
-
<!-- The duration (in ms) of the fade animation on the object outlines, used when
we are dragging objects around on the home screen. -->
<integer name="config_dragOutlineFadeTime">900</integer>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index d6cd3eeb0..e346c6a0e 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -44,4 +44,9 @@
<!-- 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>
+
+ <!-- When dragging items on the workspace, the number of dps by which the position of
+ the drag view should be offset from the position of the original view. -->
+ <dimen name="dragViewOffsetX">0dp</dimen>
+ <dimen name="dragViewOffsetY">-8dp</dimen>
</resources>