i’m making an android application, and i have a tabhost and two tabs in my xml. I have called them and they work just fine. But i want to get rid of the ugly grey/orange color on tabs. I have tried setting the bg using an image. I used this code:
th.getTabWidget().setBackgroundResource(R.drawable.tab_normal);
But it shows up like this:

How can i get it to replace the gray and orange color?
Thanks
Steps to fully customize tabwidget:
Create custom layout for tabwidget: this layout similar to default one which consist of one
Iconand oneTextView. You can choose whatever layout you want. Notice that the parent layout has stateful backgroundtabwidget_selector. This drawable is the key to replace default orange focus color. You can choose your own focus color.Write function which return a view for
tabwidget. Set text, icon drawable for your tabwidgetUse this function in your activity: