Example #1
0
 /** User end choice items */
 protected void onChoiceEnded() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onChoiceEnded();
   }
 }
Example #2
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);
   }
 }
Example #3
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);
   }
 }
Example #4
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);
   }
 }
Example #5
0
 /**
  * Notifies onClickBackView
  *
  * @param position back item clicked
  */
 protected void onClickBackView(int position) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     swipeListViewListener.onClickBackView(position);
   }
 }
Example #6
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);
   }
 }
 /**
  * Start close item
  *
  * @param position list item
  * @param right
  */
 protected void onStartClose(int position, boolean right) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onStartClose(position, right);
   }
 }
 /** User is in first item of list */
 protected void onFirstItemList() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onFirstItemList();
   }
 }
 /**
  * Notifies onMove
  *
  * @param position Item moving
  * @param x Current position
  */
 protected void onMove(int position, float x) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onMove(position, x);
   }
 }
 /**
  * Notifies onChangeChoice
  *
  * @param position position that choice
  * @param selected if item is selected or not
  */
 protected void onChangeChoice(int position, boolean selected) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onChangeChoice(position, selected);
   }
 }
 /** User start choice items */
 protected void onStartChoice() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onStartChoice();
   }
 }
 /**
  * Notifies onClosed
  *
  * @param position Item closed
  * @param fromRight If open from right
  */
 protected void onClosed(int position, boolean fromRight) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onClosed(position, fromRight);
   }
 }
 /**
  * Notifies onOpened
  *
  * @param position Item opened
  * @param toRight If should be opened toward the right
  */
 protected void onOpened(int position, boolean toRight) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onOpened(position, toRight);
   }
 }
 /**
  * Notifies onClickBackView
  *
  * @param position back item clicked
  */
 protected void onClickBackView(int position) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onClickBackView(position);
   }
 }
Example #15
0
 /** User is in last item of list */
 protected void onLastListItem() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onLastListItem();
   }
 }
 protected int changeSwipeMode(int position) {
   if (swipeListViewListener != null) {
     return swipeListViewListener.onChangeSwipeMode(position);
   }
   return SWIPE_MODE_DEFAULT;
 }
Example #17
0
 /** Notifies onListChanged */
 protected void onListChanged() {
   if (swipeListViewListener != null) {
     swipeListViewListener.onListChanged();
   }
 }
Example #18
0
 /**
  * Notifies onDismiss
  *
  * @param reverseSortedPositions All dismissed positions
  */
 protected void onDismiss(int[] reverseSortedPositions) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onDismiss(reverseSortedPositions);
   }
 }
Example #19
0
 protected int changeSwipeMode(int position) {
   if (swipeListViewListener != null && position != ListView.INVALID_POSITION) {
     return swipeListViewListener.onChangeSwipeMode(position);
   }
   return SWIPE_MODE_DEFAULT;
 }
 /**
  * Start open item
  *
  * @param position list item
  * @param action current action
  * @param right to right
  */
 protected void onStartOpen(int position, int action, boolean right) {
   if (swipeListViewListener != null) {
     swipeListViewListener.onStartOpen(position, action, right);
   }
 }