Default Item Touch Callback
默认实现拖拽替换和侧滑删除
Constructors
DefaultItemTouchCallback
Link copied to clipboard
fun DefaultItemTouchCallback()
Content copied to clipboard
Functions
clearView
Link copied to clipboard
open override fun clearView(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder)
Content copied to clipboard
getMovementFlags
Link copied to clipboard
open override fun getMovementFlags(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder): Int
Content copied to clipboard
getSwipeThreshold
Link copied to clipboard
open override fun getSwipeThreshold(viewHolder: RecyclerView.ViewHolder): Float
Content copied to clipboard
onChildDraw
Link copied to clipboard
open override fun onChildDraw(c: Canvas, recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder, dX: Float, dY: Float, actionState: Int, isCurrentlyActive: Boolean)
Content copied to clipboard
onDrag
Link copied to clipboard
open fun onDrag(source: BindingAdapter.BindingViewHolder, target: BindingAdapter.BindingViewHolder)
Content copied to clipboard
onMove
Link copied to clipboard
open override fun onMove(recyclerView: RecyclerView, source: RecyclerView.ViewHolder, target: RecyclerView.ViewHolder): Boolean
Content copied to clipboard
onSelectedChanged
Link copied to clipboard
open override fun onSelectedChanged(viewHolder: RecyclerView.ViewHolder?, actionState: Int)
Content copied to clipboard
onSwiped
Link copied to clipboard
open override fun onSwiped(viewHolder: RecyclerView.ViewHolder, direction: Int)
Content copied to clipboard