コード例 #1
0
 @Override
 public void onDismiss(AbsListView listView, int[] reverseSortedPositions) {
   for (int position : reverseSortedPositions) {
     mAdapter.remove(position);
   }
   Toast.makeText(
           this,
           "Removed positions: " + Arrays.toString(reverseSortedPositions),
           Toast.LENGTH_SHORT)
       .show();
 }
コード例 #2
0
 @Override
 public void deleteItem(int position) {
   mAdapter.remove(position);
   mAdapter.notifyDataSetChanged();
 }
コード例 #3
0
 @Override
 public void remove(RecordingItem item) {
   mDatabase.removeItemWithId(item.getId());
   super.remove(item);
 }