was trying to add this "gesture" function to my first program, and almost every search I did came to this thread:
Fling gesture detection on grid layout
I was able to get it working.. but in my case, I am not sure if it's 100 % correct.
In my layout, I have 3 horizontal linearLayouts, each one has 5 buttons.. so it's 3 columns of 5 buttons.. according to the thread I had to:
"Attach your gesture listener to all the views you add to the main layout;"
that means for all the 15 buttons:
"button.setOnTouchListener(gestureListener);"
Couldn't I just say that the LinearLayouts with the buttons are the ones looking out for the swipe gestures? Or because they are "hidden" on the back of the buttons, this can't be done?
Because I have another layout I want to implement with this, and it has even more buttons..
So .. just looking for a simpler way of detecting on my screen for swipe right | left .. if it does exists..
Thank you in advance