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:
. 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:
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
Upon initial display, everything is rendered correctly:
. 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:
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