Reputation: 45911
I'm developing an Android 3.1 tablet application.
I've found a really nice widget ViewPager that it is only available on android.support.v4.view.ViewPager
.
I think I don't have to use android.support.v4
if I'm using Android 3.1 SDK.
Do you know if there is something similar to ViewPager on Android 3.1?
or
How can I use fragments on Android 3.1?
Upvotes: 1
Views: 1444
Reputation: 1006584
I think I don't have to use android.support.v4 if I'm using Android 3.1 SDK.
For ViewPager
, yes, you do. The Android Support package contains both backports (e.g., fragments) and new stuff (e.g., ViewPager
).
Do you if there is something similar to ViewPager on Android 3.1?
ViewPager
is in the Android Support package, not in any firmware release.
How can I use fragments on Android 3.1?
You can use native fragments, if your app will only run on API Level 11+.
Upvotes: 1