I have an image button on my view which i need to change after user interaction. I dont find nothing like myImageButton.setDrawable
Here is my xml for the button i
Use
setImageResource(R.drawable.btn_stop);
You can use
setImageResource for the image button
Use this:
myImageButton.setImageResource(R.drawable.btn_stop);
ImageButton = (ImageButton)findViewById(R.id.stopButton);
btn.setCompoundDrawablesWithIntrinsicBounds(R.drawable.btn_stop, 0, 0, 0);