pulling photo from url and placing on screen
What's the proper way to add a photo from a url to my main.xml and having that 开发者_开发技巧placed on my activity?
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.
精彩评论