Changing background of a button in widget: Android -


i need change background of button programmatically. button placed in widget.

i got example of changing background color here, changing color, , want use image instead of color.

is there way apply background image button programmatically?

thank you

instead of using setbackgroundcolor in example linked should able use setbackgroundresource think.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -