开发者

pulling photo from url and placing on screen

开发者 https://www.devze.com 2023-01-23 07:33 出处:网络
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 t

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消