Search code examples
androidandroid-actionbaractionbarsherlock

Navigation Tabs in ActionBar


I have a small Android App which consists of 12 activities. I have also used SherlockActionBar for all the activites.

I want to add Navigation Tabs in action bar of one of my activity. I have done some googling but got to know that Navigation Tabs in ActionBar are used with Fragments.

So, my question is, how can I add Navigation Tabs to Action Bar without going for Fragments. I am not familiar with fragments and so don't want to use that.

Pease help me out here?

Thanks in advance.


Solution

  • StackOverflow is a better resource than google search for android (just my opinion). Perhaps this solution will meet your needs:

    Is it possible to display tabs without using fragments in android 3.0?