Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swiping between Fragments without android.support.v4

I wonder if it is possible to implement swiping between Fragments with ViewPager without the use of android.support.v4? I'm using android.app. Or is there any other way that this can be done?

Thanks

like image 391
user2307292 Avatar asked Nov 13 '22 06:11

user2307292


1 Answers

I wonder if it is possible to implement swiping between Fragments with ViewPager without the use of android.support.v4?

If you are looking to use ViewPager with native API Level 11 fragments, use android-support-v13.jar and its implementation of things like ViewPager and FragmentPagerAdapter. You will find both the v4 and the v13 versions of FragmentPagerAdapter in the documentation.

Or, roll your own subclass of PagerAdapter that handles fragments in a way that suits you, along with android-support-v13.jar for ViewPager.

like image 110
CommonsWare Avatar answered Nov 14 '22 21:11

CommonsWare