Browse between screens

Asked

Viewed 576 times

3

I’m developing a project on Android Studio, using drawer navigation. And in one of Fragments I need you to have a navigation of 2 screens.

How do I navigate between two screens, ie when sliding on a screen, open another screen and have this navigation between 2 layout.

  • 1

    If I’m not mistaken you must use onFling events of the gesture detector.

  • I believe you’re talking about Viewpager ? check out the link and see if this http://developer.android.com/training/animation/screen-slide.html

  • thanks for the help, but actually I just need to move from one screen to another without using buttons, just sliding. I think the ideal would be a method that when sliding (to the right) on one screen it calls the other.

  • Just what I posted, Viewpager has no buttons.

  • yes but how do I implement this in a Drawer navigation? when an option is selected, for example an address open an address and when sliding to the right open another screen with the address 2...

  • @Danielkchevi you have to explain your problem better.

Show 1 more comment

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.