I need to create an application with 4 view. I need to pass from a view to an other simply by a touch and a move to the left or to the right (no button). The effect I would like is the same that you see when you navigate in the main menu of android when you pass from a page to another.
I have tested the ViewFlipper, but I cannot use it: it seems not to catch the touch event correctly. I don’t even know if it is the right component.
What is the right way to handle this?
Finally I made it. This is my solution.
First of all you need to define a main layout, that contains the child layout.
where page_1 and page_2 are the layout that I need to exchange. Those layout are absolutely standard layout, made as you prefear.
Then you need an activity:
Tada! Done!