-
public interface ItemTouchUIUtilUtility 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.
-
-
Method Summary
Modifier and Type Method Description abstract voidonDraw(Canvas c, RecyclerView recyclerView, View view, float dX, float dY, int actionState, boolean isCurrentlyActive)The default implementation for onChildDraw abstract voidonDrawOver(Canvas c, RecyclerView recyclerView, View view, float dX, float dY, int actionState, boolean isCurrentlyActive)The default implementation for onChildDrawOver abstract voidclearView(View view)The default implementation for clearView abstract voidonSelected(View view)The default implementation for onSelectedChanged -
-
Method Detail
-
onDraw
abstract void onDraw(Canvas c, RecyclerView recyclerView, View view, float dX, float dY, int actionState, boolean isCurrentlyActive)
The default implementation for onChildDraw
-
onDrawOver
abstract void onDrawOver(Canvas c, RecyclerView recyclerView, View view, float dX, float dY, int actionState, boolean isCurrentlyActive)
The default implementation for onChildDrawOver
-
onSelected
abstract void onSelected(View view)
The default implementation for onSelectedChanged
-
-
-
-