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 ofonTouchEvent
andonInterceptTouchEvent
to treat these cases? There is also theSimpleGestureDetector
, 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– Wakim