Code example for DragEvent

Methods: getResult

0
			} 
		} 
	} 
 
	private boolean dropEventNotHandled(DragEvent dragEvent) {
		return !dragEvent.getResult();
	} 
 
	class MyDragListener implements OnDragListener {
		Drawable enterShape = getResources().getDrawable(
				R.drawable.shape_droptarget); 
		Drawable normalShape = getResources().getDrawable(R.drawable.shape);
 
		@Override 
		public boolean onDrag(View v, DragEvent event) {
			// Log.e("DRAGGGG", 
			// upperLayout.toString() + " + " + lowerLayout.toString()); 
			int action = event.getAction();
			switch (event.getAction()) {
			case DragEvent.ACTION_DRAG_STARTED:
				// Do nothing