修改tabhost中tab的背景

for (int i = 0; i < tabHost.getTabWidget().getChildCount(); i++) {

View view = tabHost.getTabWidget().getChildAt(i);

view.setBackgroundDrawable(getResources().getDrawable(

R.drawable.tab_indicator));

}

你可能感兴趣的:(tabhost)