Snake
Snake

Reputation: 14658

scrollable tab (swipe) with API 8

I am trying to use the code template provided by android in eclipse and I set my min SDK to API 8. I tried to choose the "blank activity with scrollable tab" for using the swipe feature but it wouldn't let me continue and complaining that this code template support version 11 and more.

However, I thought that's why the support library of version 4 is! To support Api 4 and above.

Am I missing the point here or is there something I need to do?

Thank you

Upvotes: 1

Views: 1319

Answers (2)

Squonk
Squonk

Reputation: 48871

Use the android.support.v7 compatibility libraries (which work together with the v4 libraries).

When you create the project in eclipse set the minimum API version to 11 but once the project is created, edit AndroidManifest.xml to set minSDKVersion to 8.

From time to time when building the project, eclipse may complain about min SDK version being required for certain things - in this case just Clean the project and it will build without problems.

Upvotes: 1

theDazzler
theDazzler

Reputation: 1059

I have gotten it to work using ActionBarSherlock and ViewTabPager. Look into those

Upvotes: 0

Related Questions