Android: swipe left to previous screen, right to next next screen?

Leanne Butler shared this question 6 years ago
Answered

Android: swipe left to previous screen, right to next next screen?


How do I go about this? I only want this to work on certain screens?


Thanks guys!

Comments (6)

photo
1

Now there is kind of a trick to do that explained at the end of this tutorial http://www.justinmind.com/prototyper/... but the next update (in a month or so) will include not only swipe but many other gestures as well.

photo
1

Thanks for the reply. I'm half way there I think. So do I put everything in the page into a dynamic panel, on drag hide slide that panel and then link to the next page? How can I ascertain if the user has dragged left or right to determine whether to link to the previous or next screen?

photo
1

I tried this:


On drag start move the background image. On drag stop if image is on top of zone a go to previous screen, zone b next scree. I set up drop zones to the left and right area of the screen to ascertain whether they have swiped left or right. It works sometimes, sometimes it doesn't. Any thoughts?


Thanks again,


Leanne.

photo
1

Could you send your .vp file to jim.support at justinmind.com please? We will take a look at it.

photo
1

That would be awesome! Can you please send me an email address?

photo
1

Yes, jim.support at justinmind.com