I am new to android development. I have a button for which i have provided the selector as below
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/menu_selected" android:state_selected="true"></item>
<item android:drawable="@drawable/menu_pressed" android:state_pressed="true"></item>
<item android:drawable="@drawable/list"></item>
</selector>
By this i am able to achieve the background image change on button Pressed and on button Selected, but i want to change the background color also along with the image. is this possible ? If it is then please guide me how to achieve the same.