apply android:background on button code example Example: how to set background image on button in android btn.setBackgroundResource(R.drawable.new_todo_image);