ItemTouchUIUtil
public interface ItemTouchUIUtil
Utility class for ItemTouchHelper which handles item transformations for different API versions.
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 | |
|---|---|
getDefaultUIUtil |
Summary
Public methods |
|
|---|---|
abstract void |
The default implementation for |
abstract void |
onDraw(The default implementation for |
abstract void |
onDrawOver(The default implementation for |
abstract void |
onSelected(View view)The default implementation for |
Public methods
clearView
Added in 1.0.0
abstract void clearView(View view)
The default implementation for clearView
onDraw
Added in 1.0.0
abstract void onDraw(
Canvas c,
RecyclerView recyclerView,
View view,
float dX,
float dY,
int actionState,
boolean isCurrentlyActive
)
The default implementation for onChildDraw
onDrawOver
Added in 1.0.0
abstract void onDrawOver(
Canvas c,
RecyclerView recyclerView,
View view,
float dX,
float dY,
int actionState,
boolean isCurrentlyActive
)
The default implementation for onChildDrawOver
onSelected
Added in 1.0.0
abstract void onSelected(View view)
The default implementation for onSelectedChanged