I want to perform right swipe and swipe left on GridView in fragment. If I used any swipe gesture on GridView then GridView's click and long click is not working. Can someone help me that how can i perform swipe left and swipe right on GridView with onclick and longclick.
Asked
Active
Viewed 865 times
1 Answers
0
Use Recycler view with GridLayoutManager. Recycler view have nice api for swipe. for click listener you can create onclick listener in view holder also or you can implement using itemtouch listener. For more check this so answer -

Community
- 1
- 1

Wasim K. Memon
- 5,979
- 4
- 40
- 55
-
@Dhanveerthakur if my answer is helpful then accept it. – Wasim K. Memon Aug 10 '16 at 13:36