android studio cast to image button code example
Example: imagesbutton how to set background
imageButton.setBackground(this.getDrawable(R.drawable.your_image));
imageButton.setBackground(this.getDrawable(R.drawable.your_image));