示例#1
0
 /** Dismiss items selected */
 public void dismissSelected() {
   List<Integer> list = touchListener.getPositionsSelected();
   int[] dismissPositions = new int[list.size()];
   int height = 0;
   for (int i = 0; i < list.size(); i++) {
     int position = list.get(i);
     dismissPositions[i] = position;
     int auxHeight = touchListener.dismiss(position);
     if (auxHeight > 0) {
       height = auxHeight;
     }
   }
   if (height > 0) {
     touchListener.handlerPendingDismisses(height);
   } else {
     onDismiss(dismissPositions);
     touchListener.resetPendingDismisses();
   }
   touchListener.returnOldActions();
 }
示例#2
0
 /**
  * Get positions selected
  *
  * @return
  */
 public List<Integer> getPositionsSelected() {
   return touchListener.getPositionsSelected();
 }