I am developing an application with Android: minSdkVersion = "11". From what I know, ViewPager is implemented in the compatibility library. I managed to get it to work in my application by adding the android-support-v4.jar library, but now I have to use
android.support.v4.app.FragmentActivity
because I need getSupportFragmentManager () for FragmentPagerAdapter instead of the new android.app.Activity getFragmentManager ().
I also need to use
android.support.v4.app.Fragment
instead
android.app.Fragment
It works, although I definitely don't like this approach. It destroys the design of the application, and I do not want to have a compatibility library in my level 11 API project at all.
Are there other more familiar ways to use ViewPager in Honeycomb + applications?
morphium
source share