I want to change the color of bottom of a tabview ( Its is blue by default but I want to change it to red ).
I have put an image of my application :
And by the way I'm not using android support in my application
I want to change the color of bottom of a tabview ( Its is blue by default but I want to change it to red ).
I have put an image of my application :
And by the way I'm not using android support in my application
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);}