ItemTouchUIUtil

Utility class for ItemTouchHelper which handles item transformations for different API versions.

This class has methods that map to ItemTouchHelper.Callback's drawing methods. Default implementations in ItemTouchHelper.Callback call these methods with itemView and ItemTouchUIUtil makes necessary changes on the View depending on the API level. You can access the instance of ItemTouchUIUtil via getDefaultUIUtil and call its methods with the children of ViewHolder that you want to apply default effects.

See also

Functions

Link copied to clipboard
abstract fun clearView(view: View)
The default implementation for clearView
Link copied to clipboard
abstract fun onDraw(c: Canvas, recyclerView: RecyclerView, view: View, dX: Float, dY: Float, actionState: Int, isCurrentlyActive: Boolean)
The default implementation for onChildDraw
Link copied to clipboard
abstract fun onDrawOver(c: Canvas, recyclerView: RecyclerView, view: View, dX: Float, dY: Float, actionState: Int, isCurrentlyActive: Boolean)
The default implementation for onChildDrawOver
Link copied to clipboard
abstract fun onSelected(view: View)
The default implementation for onSelectedChanged