Open bobymicroby opened 7 years ago
You can solve this by simply adding this around xMark.draw(c).
c.save();
c.clipRect(itemView.getRight() + (int) dX, itemView.getTop(), itemView.getRight(), itemView.getBottom());
xMark.draw(c);
c.restore();
My PR fixes this issue as well, without having to go through the draw process. https://github.com/nemanja-kovacevic/recycler-view-swipe-to-delete/pull/6
When you swipe the xMark is shown above the row. If you release the swipe it still stays on top until you swipe another row.