TabHost tabHost = getTabHost(); // The activity TabHost
LinearLayout ll = (LinearLayout) tabHost.getChildAt(0);
TabWidget tw = (TabWidget) ll.getChildAt(0);
// first tab
RelativeLayout rllf = (RelativeLayout) tw.getChildAt(0);
TextView lf;
lf = (TextView) rllf.getChildAt(1);
lf.setTextSize(12);
lf.setPadding(0, 0, 0, 2);
//second tab
RelativeLayout rllf2 = (RelativeLayout) tw.getChildAt(1);
lf = (TextView) rllf2.getChildAt(1);
lf.setTextSize(12);
lf.setPadding(0, 0, 0, 2);
http://stackoverflow.com/questions/1906314/android-tabwidget-in-light-theme
沒有留言:
發佈留言