I am using below code to display highlighted button when i am in that home page but blow my code is not working so I am not understanding what is the wrong in my xml code.
Can you tell me the correct way please?
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/button_pressed" android:state_activated="true"/>
<!-- pressed -->
<item android:drawable="@drawable/button_pressed" android:state_pressed="true"/>
<!-- pressed -->
<item android:drawable="@drawable/button_pressed" android:state_focused="true"/>
<!-- focused -->
<item android:drawable="@drawable/list_button" android:state_hovered="true"/>
<!-- hovered -->
<item android:drawable="@drawable/button_background"/>
<!-- default -->
</selector>