View child = tabWidget.getChildAt(i);
TextView tv = (TextView) child.findViewById(android.R.id.title);
tv.getLayoutParams().height = LayoutParams.MATCH_PARENT;
tv.getLayoutParams().width = LayoutParams.WRAP_CONTENT;
tv.setTextSize(30);
tv.setGravity(Gravity.CENTER);
LinearLayout.LayoutParams lp = (LayoutParams) child
.getLayoutParams();
lp.width = LayoutParams.MATCH_PARENT;
lp.height = LayoutParams.WRAP_CONTENT;
// lp.weight = 1.0f;
}
<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:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1" />
</LinearLayout>
</TabHost>