Adding fade when dragging items outside of the customization tray.
Change-Id: Ie8dad00bc0278053707f81d948528929e6bb6f5c
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user