开发者

ViewPager for multiple Activities

开发者 https://www.devze.com 2023-03-28 10: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 imple

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开发者_JAVA技巧 I want is to scroll between different screens, and each screen does its own job.

Thanks.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消