0

I would like to know, how can i add Tabs in the mid of screen of Android. I am using Actionbarsherlock to get the look and feel of ICS. Here i can add tabs on top or at the bottom.

Is there any way or sample example you know to add tabs in the middle of screen.

Naruto
  • 9,284
  • 34
  • 114
  • 196

2 Answers2

1

Consider creating a LinearLayout or RelativeLayout to split the View into two halves, and then create a separate fragment in each.

See related: Is there any alternative to nested Fragments?

See YouTube's 4.0+ app for an example of this in action.

Community
  • 1
  • 1
maxko87
  • 2,765
  • 4
  • 27
  • 43
0

A nice way of creating tabs in the middle of the screen is to use a ViewPager in combination with Jake Wharton's ViewPagerIndicator and the TabPageIndicator style.

emidander
  • 2,303
  • 20
  • 29