i'm following tutorial remove item recyclerview:
https://medium.com/@ipaulpro/drag-and-swipe-with-recyclerview-b9456d2b1aaf
to remove item, used following piece of code:
@override public void onitemdismiss(int position) { mpedidos.remove(position); madapter.notifyitemremoved(position); madapter.notifyitemrangechanged(position, getitemcount()); }
in way, when element eliminated, lower element rises occupy new post, remains 'phantom' of itself.
that is, example, suppose have following:
item 1
item 2
item 3
if delete item 2, list follows:
item 1
item 3
item 3
any ideas or suggestions problem might be?
thanks
Comments
Post a Comment