I have defined a ImageButton as being drawn by a selector (which uses several images for different states). I need to change the way the buttons look during runtime.
I know I can use "setBackgroundResource" - but I have made the actual background resource a selector. I need to set the images for the specific states I have used in the selector.
So do I need to somehow obtain the selector, then set the images there? If I just call "setBackgroundResource" I assume this will negate the whole selector.
How do I go about doing this?