The drag/drop ApiDemo now uses a global drag, not local-only
Showing off the new View.DRAG_FLAG_GLOBAL feature. Change-Id: I3f857974a7334e00a891d93a70ecc7a85378cd68
This commit is contained in:
@@ -132,7 +132,7 @@ public class DraggableDot extends View {
|
||||
public boolean onLongClick(View v) {
|
||||
ClipData data = ClipData.newPlainText("dot", "Dot : " + v.toString());
|
||||
v.startDrag(data, new ANRShadowBuilder(v, mAnrType == ANR_SHADOW),
|
||||
(Object)v, 0);
|
||||
(Object)v, View.DRAG_FLAG_GLOBAL);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user