Code example for DragEvent

Methods: getResult

0
        } 
        return true; 
    } 
	 
	private boolean dropEventNotHandled(DragEvent dragEvent) {
		        return !dragEvent.getResult();
		} 
 
	@Override 
	public boolean onLongClick(View view) {
        ClipData clipData = ClipData.newPlainText("", "");
        View.DragShadowBuilder dsb = new View.DragShadowBuilder(view);
        view.startDrag(clipData, dsb, view, 0);
//      view.setVisibility(View.INVISIBLE); 
        return true;	 
	} 
 
 
	public ListViewData getData() { 
		return data;
	}