Possible related question:Adding Fling Gesture to an image view - Android
This is what I want:
An imageview-menu, single view, one image shown at a time, when swipe up or down, change the picture accordingly thus enabling users to access different functions.
This is what I plan to do:
Use guesture dector, combining with ontouch event, to detect the down/initial finger contact position then the up/last finger contact position, do a simple math, and figure out if the user had swiped up or down, and execute relevant events accordingly.
This is the problem:
I failed to find a simpler solution and I cannot believe android actually don't have a swipe up/down/left/right event for views, not even imageview.
My questions are:
- Will my plan work?
- Is it the optimal/easiest solution, am I overcomplicating things, as in, there absolutely is a dedicated mechanism built in android tot listen to swipes?