Code example for DragEvent

Methods: getResult

0
	       
	    } 
	} 
 
	private boolean dropEventNotHandled(DragEvent dragEvent) {
		        return !dragEvent.getResult();
	} 
	 
	class MyDragListener implements OnDragListener {
 
	    @Override 
	    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:
	    	   
	        break; 
	      case DragEvent.ACTION_DRAG_ENTERED: