pulling photo from url and placing on screen
-
29-09-2019 - |
Question
What's the proper way to add a photo from a url to my main.xml and having that placed on my activity?
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