TabWidget background color change

fatty112

New Member
I want to change the background color of the TabWidget. I have a picture for the tab that I don't want to change, I only want to change the background color of that Image without replacing it with another image, here is my code.\[code\]<?xml version ="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <!-- When selected color blue --> <item android:drawable="@drawable/profile" android:state_selected="true"/> <!-- When NOT selected color black --> <item android:state_selected="false" android:drawable="@drawable/profile"> </item></selector>\[/code\]For example in the following line(When is selected) to put something like..\[code\]<item android:state_selected="false" android:drawable="@drawable/profile" android:backgroundColor="#5397CB">\[/code\]and in the NOTselected state to be black..\[code\]<item android:state_selected="false" android:drawable="@drawable/profile" android:backgroundColor="#fffff">\[/code\]
 
Back
Top