How to change the font size of tabhost in android

You can define themes, use styles to achieve this: First you create the theme (name:CustomTheme) for your Activity in your res/values/styles.xml: <style name=”CustomTheme” parent=”@android:style/Theme”> <item name=”android:tabWidgetStyle”>@style/CustomTabWidget</item> </style> <style name=”CustomTabWidget” parent=”@android:style/Widget.TabWidget”> <item name=”android:textAppearance”>@style/CustomTabWidgetText</item> </style> <style name=”CustomTabWidgetText” parent=”@android:style/TextAppearance.Widget.TabWidget”> <item name=”android:textSize”>20sp</item> <item name=”android:textStyle”>bold</item> </style> Then in your androidManifest.xml you specify the theme above for your TabActivity or Activity … Read more

Android remove space between tabs in tabwidget

For removing the grey line at the bottom of your tabbar, you can set tabHost.getTabWidget().setStripEnabled(false); As of removing the gap between the tabs.. The best way would be to use your own drawable without any paddings. You can use images for this, or you can create your tabs’ backgrounds via xml’s, say inside a <layer_list> … Read more