答案 0 :(得分:0)
public static void setTabColor(TabHost tabhost) {
for(int i=0;i<tabhost.getTabWidget().getChildCount();i++)
{tabhost.getTabWidget().getChildAt(i).setBackgroundResource(R.color.white);} tabhost.getTabWidget().getChildAt(tabhost.getCurrentTab()).setBackgroundResource(R.color.tab_selected);}