Change activities by sliding on the screen

3

I have an application that has 3 activities and I want to pass between them by sliding on the screen. I was trying but it does not work out, how can I do it? I already have the 3 activities done, each one with its functions, I want to communicate them by sliding. Thanks

    
asked by Zekirak 30.09.2016 в 03:40
source

1 answer

3

The ideal option to do what you want is to have an Activity that contains a ViewPager , All 3 Activities you must change them to Fragments and these Fragments add them to your ViewPager .

In the documentation you can find an example for what you want.

    
answered by 30.09.2016 / 21:18
source