4

I am using six tabs in tab view. In portrait mode tab size become very small .So i want to scroll the tabs in horizontal so that size of each tab will remain original . How we can do this?

Xorsat
  • 2,388
  • 21
  • 21
android_novice
  • 149
  • 3
  • 8

2 Answers2

3

There are a lot of solutions on the web for this but they're all complicated and unnecessary. If you are trying to make the tabs on the top of the screen scroll-able then you can use this simple implementation I have shown below. Hope this helps.

<HorizontalScrollView android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:fillViewport="true"
  android:scrollbars="none">

      <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" />

</HorizontalScrollView>
Zyzz
  • 208
  • 1
  • 2
  • 11
3

Is this what you are looking for? http://blog.uncommons.org/2011/04/18/scrolling-tabs-in-android/

Sujith
  • 31
  • 4