I have two relative layouts together, and I want to set an Image (drawable from resources) to one of the layouts programmatically. The image cannot be a background image. I have tried using setBackgroundResource() but that doesn’t serve the purpose. Is there a method which could set a foreground image to my layout?
I have two relative layouts together, and I want to set an Image (drawable
Share
You can Use ImageView.