FragmentPagerAdapter Exists Only In Android.Support.V4.App (and not Android.App)

后端 未结 5 871
灰色年华
灰色年华 2020-12-12 14:54

I cannot find find FragmentPagerAdapter within Android.App.

I do not want to use the Fragment\'s from Android.Support.V4.App, as my target API is 14 and higher (Andr

5条回答
  •  既然无缘
    2020-12-12 15:26

    There is one that is in android.support.v13.app.FragmentPagerAdapter, which should do what you want it to do. It's a FragmentPagerAdapter for non-support fragments.

    Android Studio Installation

    Please add follow Gradle dependencies

    dependencies {
        compile 'com.android.support:support-v13:+'
    }
    

提交回复
热议问题