ViewPager for multiple Activities

前端 未结 1 1118
礼貌的吻别
礼貌的吻别 2021-01-21 16:04

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

1条回答
  •  鱼传尺愫
    2021-01-21 16:46

    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 讨论(0)
提交回复
热议问题