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? -

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -