I have no interest in backward support for < 4.0 devices. And also, I would like to get rid of support libraries to make package as small as possible.
Is it possible to create similar effect only using 4.0+ native fragments?
ViewPager
is not tied to any fragments. You are welcome to use ViewPager
with:
Views
for the pages You are also welcome to copy the source code to ViewPager
and PagerAdapter
into your project. If you would like to use FragmentPagerAdapter
or FragmentStatePagerAdapter
with native API Level 11+ fragments, you can copy the source code to the v13
editions of those classes into your project as well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.