I want to remove the background drawable @drawable/bg programmatically. Is there a way to do that?
@drawable/bg
Currently, I have the following XML in my layout:
I have a case scenario and I tried all the answers from above, but always new image was created on top of the old one. The solution that worked for me is:
imageView.setImageResource(R.drawable.image);