BUG: statelist button behavior

rgrlee71

Member
Licensed User
Longtime User
If you use a statelist style button to change to a different activty (using StartActivity) the states reverse on returning to the activity that originated the button press.

Meaning when the activity is returned back to the originator the "enabled drawable" and the "pressed drawable" states are reversed. (the colors)

This only happens with two buttons in my app that switch the activities back and forth.

Also of note is that I'm using the button_down event instead of the button_click event to bypass the android "audible selection" setting.

All the other buttons function fine under the same criteria. (other than using StartActivity)
 
Last edited:

rgrlee71

Member
Licensed User
Longtime User
I attached an app with two activities. Each activity has two buttons using the statelist style. Both buttons do the same thing (switch to the other activity).

One button is using the "click" event. The other is using the "down" event.

The click event button works fine it's the down event button that gets reversed. The pressed state color is black to show it more dramatically.

It does it on the emulator and my Galaxy S and it definitely has to do with the "down" event.
 

Attachments

  • statelistBUG.zip
    7 KB · Views: 294
Last edited:
Top