开发者

ListActivity Item with remote image

开发者 https://www.devze.com 2022-12-28 20:37 出处:网络
I have a ListActivity that should display qui开发者_Go百科te a lot of items and where each list item should contain a text and and an image. The images are gotten from a remote server. How can I displ

I have a ListActivity that should display qui开发者_Go百科te a lot of items and where each list item should contain a text and and an image. The images are gotten from a remote server. How can I display the remote image on the list item. Thanks in advance


Download the images into memory or a local cache using HttpURLConnection or similar then use BitmapFactory.decodeByteArray to convert the downloaded images into bitmaps and assign them to ImageViews using setImageDrawable to display them.

0

精彩评论

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

关注公众号