public void setCustomDragItem ( DragItem dragItem ) { DragItem newDragItem = dragItem != null ? dragItem : new DragItem ( getContext ( ) ) ; newDragItem . setSnapToTouch ( mDragItem . isSnapToTouch ( ) ) ; mDragItem = newDragItem ; mRootLayout . removeViewAt ( 1 ) ; mRootLayout . addView ( mDragItem . getDragItemView ( ) ) ; }
Set a custom drag item to control the visuals and animations when dragging a list item .