My new project is gonna be of API 14 min level. I'm going to use the compatibility library because it holds a lot of cool stuff . Wouldn't I bump into any compatibility issues if I use android.app.Fragment instead of android.support.v4.app.Fragment ?
I don't want to use the later because I would like to use new (Honeycomb) animation framework to animate fragments transition (and to use FragmentManager from SDK), for instance. Just afraid it wouldn't work with some components from the compatibility lib where android.support.v4.app.Fragment must be used.
Wouldn't I bump into any compatibility issues if I use android.app.Fragment instead of android.support.v4.app.Fragment?
Not generally. Use the v13
version of the base library, not the v4
one, so that you can pick up v13
editions of classes like FragmentPagerAdapter
, which will work with the native API Level 11+ edition of fragments.
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.