public interface UndoAdapter
SimpleSwipeUndoAdapter.
Used to provide the undo Views.| Modifier and Type | Method and Description |
|---|---|
View |
getUndoClickView(View view)
Returns the
View which serves as a button to undo the swipe movement. |
View |
getUndoView(int position,
View convertView,
ViewGroup parent)
Returns the entire undo
View that should be shown. |
View getUndoView(int position, View convertView, ViewGroup parent)
View that should be shown.position - the position of the item for which the undo View should be shown.convertView - The old view to reuse, if possible. Note: You should check that this view
is non-null and of an appropriate type before using. If it is not possible to convert
this view to display the correct data, this method can create a new view.parent - The parent that this view will eventually be attached toView getUndoClickView(View view)
View which serves as a button to undo the swipe movement. When a user clicks on this View, the swipe is undone.view - the parent View as returned in getUndoView(int, android.view.View, android.view.ViewGroup).