How to scroll tabs as tabs

I use six tabs as tabs. In portrait mode, the size of the tabs becomes very small. So I want to scroll the tabs horizontally so that the size of each tab remains original. How can we do this?

+4
source share
2 answers
+3
source

There are many solutions on the Internet, but they are all complex and not needed. If you are trying to make the tabs at the top of the screen scrollable, then you can use this simple implementation 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> 
+3
source

All Articles