How can I set Separate color for my tab label? If I change the background color whole color changes.
my code
<TabHost android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabhost"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabWidget
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@android:id/tabs"
android:layout_alignParentBottom="true"/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabcontent">
</FrameLayout>
</RelativeLayout>
</TabHost>

res/drawable/tabselector.xmlThe XML you’ve included here is a way of defining a drawable that lets you embed a case statement. It presents a different drawable depending on the state of the View it’s being assigned to. As a drawable, you should save it as an xml file within the
res/drawablefolder of your project (for exampletabselector.xml).To use it for the Tabhost, you need to construct the TabActivity as you normally would (as shown in this tutorial example).
Then when you add each tab to the host, you specify the
tabselectordrawable as the indicator as shown for “TAB 1” below.