I am developing a Kotlin app and at some point I want to implement viewPager to swipe between fragments. I have one activity to navigate to the rest of the app through the navigation graph. I have not really understood how this swiping should work.
My question is, do I need to implement a new activity as well besides the pageAdapter? And how this activity is going to cooperate with the main one? My app currently has a splash screen, and after that I would like to have the swipe mode between the fragments.
nice
cool
no
don't have a second activity, then it doesn't need to "cooperate"
https://gist.github.com/Zhuinden/c643f03a023a9cbe83fff6c75c948d3b