开发者

Loading images to ListField in blackberry

开发者 https://www.devze.com 2023-03-13 09:06 出处:网络
I am loading some data from web service with image.But problem with image loading. I have to display default image first,then the loaded image is placed on default image asynchronously.I开发者_JS百科

I am loading some data from web service with image.But problem with image loading.

I have to display default image first,then the loaded image is placed on default image asynchronously.I开发者_JS百科 do not have an idea how can i do this. Please help me.


First, use some default image from project resources, same for all rows.

Then for each row run a thread to load image, use a callback in thread to update list field row when image is loaded. See Coderholic: Blackberry WebBitmapField

Remember that we can use only limited number of threads in Blackberry application. So better create some thread pool with 3-5 threads running.

0

精彩评论

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

关注公众号