I've got more tabs that can be expected to fit on low res screens. 6, to be exact, and some with some longer words.
What I'd like to do is have them scroll, much as the stock music player that came equipped on my phone (Samsung Vibrant). I've dumped them in a scroll view, but the result is that each tab takes up as much space as it wants, and on my phone the entire tab panel only consumes about 80% of the width of the screen. I'd really like all tabs to be uniform width and to scroll. Here's what I have: <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="4dip"> <HorizontalScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="fill_horizontal"> <TabWidget android:id="@android:id/tabs" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="fill_horizontal"/> </HorizontalScrollView> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="3dip"/> </LinearLayout> </TabHost> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en