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

c++ - Linked List error when inserting for the last time -

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

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