문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top