Amir_RVDragItem
Amir_RVDragItem
Events:
- onItemMoved (OldItem As Object, OldPosition As Int, NewItem As Object, NewPosition As Int)
- onItemSelectedChanged (Item As Object, Position As Int, ActionState As Int)
- onItemStartDrag (Item As Object, Position As Int)
Fields:
- ACTION_STATE_DRAG As Int
- ACTION_STATE_IDLE As Int
- FLAG_DOWN As Int
- FLAG_END As Int
- FLAG_LEFT As Int
- FLAG_RIGHT As Int
- FLAG_START As Int
- FLAG_UP As Int
Functions:
- Initialize (EventName As String, Recycler As android.support.v7.widget.RecyclerView)
- SetDataList (Data As java.util.List)
Auto Move Item On List After Drag
- SetFlags (Flags As Int)
- SetNotifiMoveAdapter (enabled As Boolean)
Auto Call NotifiItemMoved on Adapter
Properties:
- IsDraging As Boolean [read only]
Author: AmirHosseinAghajari