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.
If I’m not mistaken you must use
onFling
events of the gesture detector.– Jorge B.
I believe you’re talking about Viewpager ? check out the link and see if this http://developer.android.com/training/animation/screen-slide.html
– Duanniston Cardoso Cabral
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.
– Daniel Kchevi
Just what I posted, Viewpager has no buttons.
– Duanniston Cardoso Cabral
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...
– Daniel Kchevi
@Danielkchevi you have to explain your problem better.
– Jorge B.