I have a school project where I am trying to get a flashlight app going. For the on/off ImageButton, I want to have 4 custom images.
If flashlight is off: -turn_on.png (
It should be "setImageResource", "setBackgroundResource" changes the background, not the src. btn_MyButton.setImageResource(R.drawable.button_bg_selector_collapsed);