You can set the height of the "Tabs" of your TabHost
or simply can provide the images to them also to change their
background.
Setting Height:
<TabHost
android:id="@+id/tab_host"
--------
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="10px"/> (Setting
the height
here)
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:id="@+id/content1"
<!-- Layout of Tab 1 -->
</LinearLayout>
<LinearLayout
android:id="@+id/content2"
</LinearLayout>
Setting Image:
View v = tabWidget.getChildAt(i);
v.setBackgroundDrawable(getResources().getDrawable(
R.drawable.tab_image_selector_recent));
On Dec 3, 9:52 pm, Tommy <[email protected]> wrote:
> Hi everyone,
>
> I was wondering if it is possible to set a height for the individual
> tabs on the widgets or if I am stuck using the default heights.
>
> Thanks for your time,
>
> Tommy
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en