TabWidget Height

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-03-23T19:00:02Z Indexed on 2010/03/23 19:03 UTC
Read the original article Hit count: 1112

Filed under:

Is it possible to set the TabWidget height and have the tab labels adjust?

If I set the TabWidget height too small, then the labels are hidden from view.

<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="5dp">
    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="30px" />
    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="5dp" />
</LinearLayout>

Thanks

© Stack Overflow or respective owner

Related posts about android