Reputation: 41665
I want to have an actionBar at top and, tabs on the next row.
My activity extended TabActivity, and used getActionBar();
Now I'm trying to use getSupportedActionBar() of sherlock and having touble.
When creating an activity to use the action bar on all versions of Android, you must declare your activity to extend any of the activity classes that start with 'Sherlock' (e.g., SherlockActivity, SherlockFragmentActivity). Interaction with the action bar is handled by calling getSupportActionBar() (instead of getActionBar()).
How do I use sherlock and tabActivity at the same time?
Upvotes: 0
Views: 2595
Reputation: 7478
There are examples of using tabs with ActionBarSherlock in the samples included with the project.
Check out the FragmentTabs and FragmentTabsPager examples.
Short answer is you extend SherlockActivity and then declare the TabHost programmatically.
Upvotes: 1