Create a new folder drawable in res and create a new file namely android.xml with the given below codeġ0. Create a new Android application project namely “NavigationTabDemo”ĩ. ![]() This application is developed in Eclipse 3.7.2 with ADT plugin (20.0.2) and Android SDK ( R20.0.1 ). Since fragments are available only with Android 3.0 and above, we will make use Android’s support library to work this application in Android 1.6 and above. In this application, we are creating navigation tabs using TabHost and Fragments. Please read the article titled ” Adding Navigation tabs containing listview to Action Bar in Pre Honeycomb versions using Sherlock library” to see how to create navigation tabs using Sherlock library. Please read the article titled ” Adding Navigation Tabs containing listview to Action Bar in Android” to see how to create navigation tabs in Android 3.0 and above.įor Android 2.x and above, we can use Action bar Sherlock library to create navigation library. There are many ways by which we can add navigation tabs to an application.īeginning with Android 3.0, the standard way to create navigation tab is using action bar. In this article, we will develop an Android application containing navigation tabs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |