Place the bitmaps into the res/drawable/ directory of your project. The image of the background can make a significant difference in the appearance of any application. Card trick: guessing the suit if you see the remaining three cards (important is that you can't move or turn the cards). I cannot seem to change the background image of my image button. How do I make a horizontal table in Excel? Add padding to adjust with this background. 2nd method is better for setting the background fd button. To change the button background we can follow 2 methods In the button OnClick, just add this code: public void onClick (View v) { if (v == buttonName) { buttonName.setBackgroundDrawable (getResources ().getDrawable (R.drawable.imageName_selected)); } } 2.Create button_background.xml in the drawable But keep that in mind.