Hey everyone, i’m trying out the `ItemTouchHelper....
# android
s
Hey everyone, i’m trying out the
ItemTouchHelper.SimpleCallback
for the swipe to delete. However, my use case is slightly different - i don’t wanna completely swipe the viewholder out. instead i’m swiping to show the buttons (e.g. Delete). There the user can click the Delete button and delete the item. That’s pretty much what iOS does. I managed to implement the swipe part (where it stops at some point). However, now I want to click on that Delete button that I drew in
onChildDraw
. Does anybody know how can I achieve this? p.s. there’s this lib https://github.com/daimajia/AndroidSwipeLayout but I wanted to try to implement it myself, before trying any 3rd party lib.