I have this:
TabHost tabHost = getTabHost(); // The activity TabHost
Add code to add tabs into tab host... and then finally
tabHost.getTabWidget().getChildAt(0).getLayoutParams().height = 25;
tabHost.getTabWidget().getChildAt(1).getLayoutParams().height = 30;
tabHost.getTabWidget().getChildAt(2).getLayoutParams().height = 35;
tabHost.getTabWidget().getChildAt(3).getLayoutParams().height = 50;
Which (if you do not have pics) results in this:
It looks like 35 is a good number.. Perhaps it needs to be changed for different dpi.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…