Prevent flicker when starting a drag.

Also, animate item the view to its new position when dragging.
This commit is contained in:
Patrick Dubroy
2010-11-23 14:40:33 -08:00
parent 2f5590d98e
commit a669d79d0d
11 changed files with 116 additions and 42 deletions

View File

@@ -24,5 +24,12 @@ import android.view.View;
*/
public interface DragSource {
void setDragController(DragController dragger);
/**
* Callback from the DragController when it begins drawing the drag view.
* This allows the DragSource to dim or hide the original view.
*/
void onDragViewVisible();
void onDropCompleted(View target, boolean success);
}