views:

33

answers:

0

How does one stylize tabs (tabhost/tabwidget)? The followding doesn't seem to work:

<TabHost android:id="@android:id/tabhost"
   android:layout_width="fill_parent" android:layout_height="fill_parent">
   <TabWidget android:id="@android:id/tabs"
    android:layout_height="wrap_content" android:layout_width="fill_parent" style="@style/profiletabs">
   </TabWidget>
   <FrameLayout android:id="@android:id/tabcontent"
    android:paddingTop="65dip" android:layout_width="wrap_content"
    android:layout_height="wrap_content"></FrameLayout>
  </TabHost>

profiletabs:

<resources>
 <style name="profiletabs">
  <item name="android:singleLine">false</item>
  <item name="android:background">@drawable/icon</item>
 </style>
</resources>