Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Redrawing the image in custom ListField

Hi all,

     I'm created a custom Listfield where i have an image(fetching from a url), header and desc. Initially i'm loading the list with dummy image and i want to replace the image with exact one that i fetched from the url. After showing the list i calling another function which gives me the bitmap, so after getting the bitmaps how will i redraw over my dummy image. Can anyone point me how can i achieve this.

Highlighted
Developer
Posts: 2,268
Registered: ‎07-08-2009
My Device: various
My Carrier: various

Re: Redrawing the image in custom ListField

Once you get the image for a certain row number, schedule its repaint with ListField.invalidate(rowNumber)

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!