Markus Junginger
Markus Junginger

Reputation: 7075

Fragment based Tabs without ActionBar

Google's FragmentTabs demo feels very hackish to me. Does anyone know a nice way to have fragment based tabs that do not rely on the ActionBar?

The ActionBar is not an option, because the tabs must appear somewhere else on the screen. Also, the ActionBar lacks in the support library.

Just wanted to check before I go on and build my own solution...

Upvotes: 3

Views: 6293

Answers (2)

b_yng
b_yng

Reputation: 14136

I used this implementation in my app and it works great. It does not require an ActionBar and uses Fragments with a ViewPager. I came across this if anyone is still interested...

SwipeyTabs

Also here is a blog post about it:

http://blog.peterkuterna.net/2011/09/viewpager-meets-swipey-tabs.html

Upvotes: 1

GrkEngineer
GrkEngineer

Reputation: 2132

TabActivity in the Android docs has an example using fragments and the TabHost and TabWidget. Hope this helps.

Upvotes: 0

Related Questions