Issue
I am working on project of android in eclipse.Android version is 2.3.3. I had set my button colour and I can also change colour of button when it is clicked but when my cursor is on button , button colour have to change and as cursor moves away it should have the colour which it had previously , same as hovering on button. But I can not figure out the action event such as state_pressed so I need that action event .If anyone can then please help me.
Solution
What you exactly need is onfocus, onpress, onclick you want to change the color. Use selectors , this will hep you
Answered By - Sreeram
Answer Checked By - Gilberto Lyons (JavaFixing Admin)