ViewPager for multiple Activities

心不动则不痛 提交于 2019-12-20 03:09:55

问题


I'm trying to implement a ViewPager that have multiple activities. I'm following this example but this doesnt look that uses multiple activities, but Fragments. If anyone can explain me how to implement this. What I want is to scroll between different screens, and each screen does its own job.

Thanks.


回答1:


I'm trying to implement a ViewPager that have multiple activities.

I doubt this is possible, and to the extent that it is, it would use deprecated techniques like ActivityGroup.

What I want is to scroll between different screens, and each screen does its own job.

Use fragments, as @Glendon Trullinger suggested.

How can I build it.

Use the example that you linked to. Or look at the Support13Demos in your SDK's extras/ folder tree, which demonstrate ViewPager. When you have specific, concrete questions regarding the use of fragments, ask another question here on StackOverflow.



来源:https://stackoverflow.com/questions/7069309/viewpager-for-multiple-activities

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!