Fixing drag icon location on non-xlarge devices

Change-Id: I7897f67e145818866a51c6a50d4d3e59674b08b4
This commit is contained in:
Adam Cohen
2011-03-28 13:18:42 -07:00
parent 99e8b40b37
commit 8878a32f26
6 changed files with 14 additions and 15 deletions

View File

@@ -87,8 +87,8 @@ public class DragView extends View {
scale.setScale(scaleFactor, scaleFactor);
}
final int offsetX = res.getInteger(R.integer.config_dragViewOffsetX);
final int offsetY = res.getInteger(R.integer.config_dragViewOffsetY);
final int offsetX = res.getDimensionPixelSize(R.dimen.dragViewOffsetX);
final int offsetY = res.getDimensionPixelSize(R.dimen.dragViewOffsetY);
// Animate the view into the correct position
mAnim = ValueAnimator.ofFloat(0.0f, 1.0f);