SwipeStack icon indicating copy to clipboard operation
SwipeStack copied to clipboard

mData.remove(position) for adapter

Open abbasalim opened this issue 8 years ago • 2 comments

hello thanks for your best library ; i want remove card from view, how i can do this?

`mData.remove(position);

mAdapter.notifyDataSetChanged();` this not work

abbasalim avatar Jul 11 '16 15:07 abbasalim

Have you tried removing the view using swipeStack.removeView(position);? Where removeView(position) contains the position of the child inside the swipestack.

Or if you want to remove the top view use following code: swipeStack.removeView(swipeStack.getTopView());

And if you want to remove it from the datasource you should use it with mData.remove(position); mAdapter.notifyDataSetChanged(); as these don't do much more than removing from the datasource.

ghost avatar Apr 04 '17 11:04 ghost

swipeTopViewToLeft() or swipeTopViewToRight()

D330 avatar Jan 12 '18 14:01 D330