button background image android code example
Example 1: imagesbutton how to set background
imageButton.setBackground(this.getDrawable(R.drawable.your_image));
Example 2: how to set background image on button in android
btn.setBackgroundResource(R.drawable.new_todo_image);