Reputation: 1393
I have a requirement to change the view of List Item (in ListView) when fling event of right/left swap is identified.
I am able to identify the fling event but question is how i can identify on which item (i want to know position in list)this fling event is happened .
Upvotes: 3
Views: 372
Reputation: 4119
I'm not sure if it's the best way but you can try something like this:
I didn't tested it so it may not work, it's just an idea.
EDIT: And there is also this lib: https://github.com/47deg/android-swipelistview you can use it or look how they implemented it.
Upvotes: 1