public interface IExtendedDraggable<T,VH extends RecyclerView.ViewHolder,Item extends IItem> extends IDraggable<T,Item>
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
getDragView(VH viewHolder)
this method returns the drag view inside the item
use this with (@withTouchHelper) to start dragging when this view is touched
|
ItemTouchHelper |
getTouchHelper()
this returns the ItemTouchHelper
|
T |
withTouchHelper(ItemTouchHelper itemTouchHelper)
use this method to set the ItemTouchHelper reference in the item
this is necessary, so that the item can manually start the dragging
i.e when a drag icon within the item is touched
|
isDraggable, withIsDraggableT withTouchHelper(ItemTouchHelper itemTouchHelper)
itemTouchHelper - the ItemTouchHelperItemTouchHelper getTouchHelper()
android.view.View getDragView(VH viewHolder)
viewHolder - the ViewHolder