I have two buttons in layout,let suppose button A and button B and I want that when user touch any of two button,their background color should change for that moment.
code
``
<item android:state_hovered="true"
android:drawable="@drawable/state_hovered"/>
<item android:state_pressed="true"
android:drawable="@drawable/state_pressed"/>
<item android:drawable="@drawable/state_deafult" />
``
State_pressed working...but state_hovered is not working. So,please suggest a way to do so.
Thanks in advance.