ViewPager for multiple activities

I am trying to implement a ViewPager with several actions. I follow this example , but it does not look like it uses several actions, but Fragments. If anyone can explain to me how to implement this. I want to scroll between different screens, and each screen does its own job.

Thanks.

+2
source share
1 answer

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.

+8
source

Source: https://habr.com/ru/post/900336/


All Articles