I am trying to implement a ViewPager that has several actions.
I doubt it is possible, and to the extent that it is, he would use outdated methods such as an ActivityGroup .
What I want is to scroll between different screens, and each screen does its own job.
Use snippets as @Glendon Trullinger suggested.
How can I create it.
Use the example you are attached to. Or look at Support13Demos in the extras/ SDK folder tree, which displays ViewPager . When you have specific, specific questions about using fragments, ask another question here on StackOverflow.
source share