Using SectionsPagerAdapter android

后端 未结 1 441
鱼传尺愫
鱼传尺愫 2021-01-20 04:55

I have a sectionsPagerAdapter that is used as the adapter for a ViewPager.

    mSectionsPagerAdapter = new SectionsPagerAdapter(
            getSupportFragme         


        
相关标签:
1条回答
  • 2021-01-20 05:15

    I'm gonna guess that your SectionsPagerAdapter was automatically generated when you created a new activity using ADT and specified a navigation type with tabs. If that's the case, then your SectionsPagerAdapter is extending FragmentPagerAdapter, whose documentation is located here.

    If you really want to use a ViewPager for what you're talking about, check out that link to the Android developer reference. It sounds, though, like you want to do something more akin to what's discussed in this Q/A. Maybe you could elaborate a bit on what you're looking to accomplish?

    0 讨论(0)
提交回复
热议问题