public interface SwipeListViewListener
| 限定符和类型 | 方法和说明 |
|---|---|
int |
onChangeSwipeMode(int position)
Used when user want to change swipe list mode on some rows.
|
void |
onChoiceChanged(int position,
boolean selected)
Called when user choice item
|
void |
onChoiceEnded()
User end choice items
|
void |
onChoiceStarted()
User start choice items
|
void |
onClickBackView(int position)
Called when user clicks on the back view
|
void |
onClickFrontView(int position)
Called when user clicks on the front view
|
void |
onClosed(int position,
boolean fromRight)
Called when close animation finishes
|
void |
onDismiss(int[] reverseSortedPositions)
Called when user dismisses items
|
void |
onFirstListItem()
User is in first item of list
|
void |
onLastListItem()
User is in last item of list
|
void |
onListChanged()
Called when the list changed
|
void |
onMove(int position,
float x)
Called when user is moving an item
|
void |
onOpened(int position,
boolean toRight)
Called when open animation finishes
|
void |
onStartClose(int position,
boolean right)
Start close item
|
void |
onStartOpen(int position,
int action,
boolean right)
Start open item
|
void onOpened(int position,
boolean toRight)
position - of the view in the listtoRight - Open to rightvoid onClosed(int position,
boolean fromRight)
position - of the view in the listfromRight - Close from rightvoid onListChanged()
void onMove(int position,
float x)
position - of the view in the listx - Current position Xvoid onStartOpen(int position,
int action,
boolean right)
position - of the view in the listaction - current actionright - to rightvoid onStartClose(int position,
boolean right)
position - of the view in the listright - void onClickFrontView(int position)
position - of the view in the listvoid onClickBackView(int position)
position - of the view in the listvoid onDismiss(int[] reverseSortedPositions)
reverseSortedPositions - Items dismissedint onChangeSwipeMode(int position)
position - position that you want to changevoid onChoiceChanged(int position,
boolean selected)
position - of the view in the list that choiceselected - if item is selected or notvoid onChoiceStarted()
void onChoiceEnded()
void onFirstListItem()
void onLastListItem()