SwipeStack
SwipeStack copied to clipboard
mData.remove(position) for adapter
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
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.
swipeTopViewToLeft()
or swipeTopViewToRight()