Android with Swipe on a Gridview

Asked

Viewed 66 times

0

Good morning to everyone I need help to make a gridview accept the onFling event (sliding horizontally left right) without using a pageView or be it done as a "button" because I saw that the event does not work on top of a gridView only in places where gridview is not. Please, if you’re not going to abuse the goodwill of those who are helping, you could give me an example because I did a lot of research and I couldn’t find one. Thank you so much .

  • Rabelos, why don’t you create a GridView and makes a customized treatment of onTouchEvent and onInterceptTouchEvent to treat these cases? There is also the SimpleGestureDetector, that detects Fling. Check out http://developer.android.com/reference/android/view/GestureDetector.SimpleOnGestureListener.html and http://stackoverflow.com/questions/4098198/adding-fling-gesture-to-an-image-view-android

1 answer

0


  • it would be good to include a code snippet, responses containing only links are not good, as they may no longer be valid, invalidating the content of the answer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.