it is not very, but you can try it in your activity on the tab.
// light theme support final TabHost tabHost = getTabHost(); tabHost.setBackgroundColor(Color.WHITE); tabHost.getTabWidget().setBackgroundColor(Color.BLACK); // hack to set font size LinearLayout ll = (LinearLayout) tabHost.getChildAt(0); TabWidget tw = (TabWidget) ll.getChildAt(0); // first tab RelativeLayout rllf = (RelativeLayout) tw.getChildAt(0); lf = (TextView) rllf.getChildAt(1); lf.setTextSize(21); lf.setPadding(0, 0, 0, 6); // second tab RelativeLayout rlrf = (RelativeLayout) tw.getChildAt(1); rf = (TextView) rlrf.getChildAt(1); rf.setTextSize(21); rf.setPadding(0, 0, 0, 6);
/res/values/colors.xml should have
<resources> <drawable name="black">#ff000000</drawable> <drawable name="white">#ffffffff</drawable> </resources>
AndroidManiest.xml must have
<application android:theme="@android:style/Theme.Light">
if you want to do something more crazy try http://ezmobile.wordpress.com/2009/02/02/customized-android-tabs/
yanokwa
source share