Adding fade when dragging items outside of the customization tray.

Change-Id: Ie8dad00bc0278053707f81d948528929e6bb6f5c
This commit is contained in:
Winson Chung
2010-12-21 11:31:54 -08:00
parent 577d017732
commit 59e1f9a07e
8 changed files with 129 additions and 29 deletions
@@ -51,11 +51,15 @@ public class ApplicationInfoDropTarget extends IconDropTarget {
int colour = getContext().getResources().getColor(R.color.app_info_filter);
mHoverPaint.setColorFilter(new PorterDuffColorFilter(colour, PorterDuff.Mode.SRC_ATOP));
// For the application info drop target, we just ignore the left padding since we don't want
// to overlap with the delete zone padding
int tb = getResources().getDimensionPixelSize(R.dimen.delete_zone_vertical_drag_padding);
int lr = getResources().getDimensionPixelSize(R.dimen.delete_zone_horizontal_drag_padding);
setDragPadding(tb, lr, tb, 0);
if (LauncherApplication.isScreenXLarge()) {
// For the application info drop target, we just ignore the left padding since we don't want
// to overlap with the delete zone padding
int tb = getResources().getDimensionPixelSize(
R.dimen.delete_zone_vertical_drag_padding);
int lr = getResources().getDimensionPixelSize(
R.dimen.delete_zone_horizontal_drag_padding);
setDragPadding(tb, lr, tb, 0);
}
}
public boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset,