Question

What's the proper way to add a photo from a url to my main.xml and having that placed on my activity?

Was it helpful?

Solution

There are lots of simple examples of this online, but the easiest way is probably to just use droid-fu's WebImageView, which comes with lots of other goodies, too. If you do roll your own, the most important part is "don't do the downloading in the UI thread," which will make your app unresponsive.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top