示例#1
0
 protected int changeSwipeMode(int position) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     return swipeListViewListener.onChangeSwipeMode(position);
   }
   return SWIPE_MODE_DEFAULT;
 }
示例#2
0
 /** Notifies onListChanged */
 protected void onListChanged() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onListChanged();
   }
 }
示例#3
0
 /**
  * Notifies onMove
  *
  * @param position Item moving
  * @param x Current position
  */
 protected void onMove(int position, float x) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     swipeListViewListener.onMove(position, x);
   }
 }
示例#4
0
 /** User end choice items */
 protected void onChoiceEnded() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onChoiceEnded();
   }
 }
示例#5
0
 /** User is in last item of list */
 protected void onLastListItem() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onLastListItem();
   }
 }
示例#6
0
 /**
  * Notifies onChoiceChanged
  *
  * @param position position that choice
  * @param selected if item is selected or not
  */
 protected void onChoiceChanged(int position, boolean selected) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     swipeListViewListener.onChoiceChanged(position, selected);
   }
 }
示例#7
0
 /**
  * Notifies onClosed
  *
  * @param position Item closed
  * @param fromRight If open from right
  */
 protected void onClosed(int position, boolean fromRight) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     swipeListViewListener.onClosed(position, fromRight);
   }
 }
示例#8
0
 /**
  * Notifies onClickBackView
  *
  * @param position back item clicked
  */
 protected void onClickBackView(int position) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     swipeListViewListener.onClickBackView(position);
   }
 }
示例#9
0
 /**
  * Start close item
  *
  * @param position list item
  * @param right
  */
 protected void onStartClose(int position, boolean right) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     swipeListViewListener.onStartClose(position, right);
   }
 }
示例#10
0
 /**
  * Notifies onDismiss
  *
  * @param reverseSortedPositions All dismissed positions
  */
 protected void onDismiss(int[] reverseSortedPositions) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onDismiss(reverseSortedPositions);
   }
 }