Saturday, 13 October 2018

Swipe card to favourite item

I was viewing the Material docs from Google when I stumbled upon this video. It shows a card item which can be swiped to the right to favourite an item.

I want to mirror this behaviour but have failed multiple times. All libraries and tutorials I can find are about swipe-to-delete. I tried to have two views stacked upon each other where the one on top should be swiped so the one below would become visible. I tried to achieve this with the ItemTouchHelper, but this class seems to only be able to facilitate the swipe-to-delete and move to reorder a list actions.

How can this swipe action be achieved?



from Swipe card to favourite item

No comments:

Post a Comment