Adding animations when dropping on delete / uninstall drop target

-> issue 5043661

Change-Id: I4e4830acc15e006e637b35c3d0dcc72c23414b95
This commit is contained in:
Adam Cohen
2011-07-19 21:47:37 -07:00
parent 9efd4a2a36
commit d4d7aa551f
5 changed files with 66 additions and 11 deletions

View File

@@ -21,6 +21,7 @@ import android.content.res.Resources;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import android.widget.TextView;
import com.android.launcher.R;
@@ -34,6 +35,8 @@ public class ButtonDropTarget extends FrameLayout implements DropTarget, DragCon
protected Launcher mLauncher;
private int mBottomDragPadding;
protected TextView mText;
protected SearchDropTargetBar mSearchDropTargetBar;
/** Whether this drop target is active for the current drag */
protected boolean mActive;
@@ -61,8 +64,11 @@ public class ButtonDropTarget extends FrameLayout implements DropTarget, DragCon
return false;
}
public void setSearchDropTargetBar(SearchDropTargetBar searchDropTargetBar) {
mSearchDropTargetBar = searchDropTargetBar;
}
public void onDrop(DragObject d) {
// Do nothing
}
public void onDragEnter(DragObject d) {