Ejemplo n.º 1
0
 protected int changeSwipeMode(int position) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     return swipeListViewListener.onChangeSwipeMode(position);
   }
   return SWIPE_MODE_DEFAULT;
 }
Ejemplo n.º 2
0
 /** Notifies onListChanged */
 protected void onListChanged() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onListChanged();
   }
 }
Ejemplo n.º 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);
   }
 }
Ejemplo n.º 4
0
 /** User end choice items */
 protected void onChoiceEnded() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onChoiceEnded();
   }
 }
Ejemplo n.º 5
0
 /** User is in last item of list */
 protected void onLastListItem() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onLastListItem();
   }
 }
Ejemplo n.º 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);
   }
 }
Ejemplo n.º 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);
   }
 }
Ejemplo n.º 8
0
 /**
  * Notifies onClickBackView
  *
  * @param position back item clicked
  */
 protected void onClickBackView(int position) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     swipeListViewListener.onClickBackView(position);
   }
 }
Ejemplo n.º 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);
   }
 }
Ejemplo n.º 10
0
 /**
  * Notifies onDismiss
  *
  * @param reverseSortedPositions All dismissed positions
  */
 protected void onDismiss(int[] reverseSortedPositions) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onDismiss(reverseSortedPositions);
   }
 }