Search code examples
androidandroid-fragmentsandroid-tabsandroid-support-library

How can I use fragments and ActionBar in API10?


I'm trying to implement Android Tab Layout with Swipeable Views. I'm developing my Android application using 2.3.3.

Because Fragment and ActionBar ... are only supported in API 11 and above, I understood that I need to install the Support Library.

Which I did : enter image description here

Do I need to configure or install anything else to be able to work with the ActionBar for instance, which is still not working !!


Solution

  • For the action bar, you need to follow the instructions to attach the v7 appcompat library project to your application project (see "Adding libraries with resources").

    For the fragments backport, your app probably already has android-support-v4.jar in libs/. If not, you will need to follow the instructions to add that JAR to your application project (see "Adding libraries without resources").