Code example for DragEvent

Methods: getResult

	private boolean dropEventNotHandled(DragEvent dragEvent) {
		        return !dragEvent.getResult();
	class MyDragListener implements OnDragListener {
	    public boolean onDrag(View v, DragEvent event) {
	    	//handle the dragged view being dropped over a drop view 
	    	View view = (View) event.getLocalState();
	      switch (event.getAction()) {
	      case DragEvent.ACTION_DRAG_STARTED:
	      case DragEvent.ACTION_DRAG_ENTERED:
Connect your IDE to all the code out there  Get Codota for Java