SyntaxFix
Write A Post
Hire A Developer
Questions
It is very simple
public void onClick(View v) { imgButton.setImageResource(R.drawable.ic_launcher); }
Using set Background image resource will chanage the background of the button