Bug? Buttons with StatelistDrawable & bitmaps not redrawing correctly

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
I've been having a problem with buttons using a StateList not redrawing correctly. In this example program I have a main layout with two panels (each panel gets its own layout loaded to it).

Upon initial display, everything is rendered correctly:
screen_1.png



. I hide panel 1 and show panel 2 and panel 2 looks fine. I then press the button to go back to panel 1 (hide 2 and show 1) and panel 1 now renders incorrectly:
screen_2.png

After this, switching between panels will cause varying combinations of incorrectly drawn buttons. Is this a bug, or have I overlooked something in the StateListDrawable creation/implementation?

Thanks in advance,

Richard
 

Attachments

  • StatelistTest.zip
    190.1 KB · Views: 321
Top