I wanted to set Linear Layout background dynamically in the following way:
-
Fetch image from web url through XML parsing and then store that image into sd card.
-
Now the image saved into sd card.
-
Set that image as a linear layout background in the app.
Now I am stuck in the third step. Can anyone help?
Use this:
Also check this: How to convert a Bitmap to Drawable in android?