For example the back button now has 2 different states
- A normal state where when nothing is happening the image will stay the same
<item android:drawable="@drawable/back_normal" /> <!-- default -->
- A pressed state for when the button is clicked so you can highlight it(the first line is the condition and the second line is the image it changes to)
<item android:state_pressed="true" android:drawable="@drawable/back_pressed" /> <!-- pressed -->
- A focused state for when the button has a cursor over it but this won't apply to android apps
Please see my comment from yesterday. Since I don't know what your high level goal is, I don't understand how a listener file fits into the project.
ReplyDelete