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

Native Development

Reply
New Developer
silajim
Posts: 19
Registered: ‎10-14-2013
My Device: Z10
My Carrier: Cosmote

Laggy Image Listview

I have an Listview of images. The images are loaded via imagesource passing an url from a datamodel provided by the c++. This solution is quite simple but it has a lack, is laggy when not all the items are displayed at once. How can I get rid of that lag? It would be possible to add an ActivityIndicator while the image loads? The UI is written in QML.

 

Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Laggy Image Listview

The larger the images the longer it will taek.

You can either make it asynchronous with a placeholder image or make the images smaller before loading.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
New Developer
silajim
Posts: 19
Registered: ‎10-14-2013
My Device: Z10
My Carrier: Cosmote

Re: Laggy Image Listview

[ Edited ]
You can either make it asynchronous with a placeholder image 

 How can I do that? I in cascades not QML sorry.

Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Laggy Image Listview

Take a look at the Image Loader sample for one way to do it...

http://developer.blackberry.com/native/sampleapps/

If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
New Developer
silajim
Posts: 19
Registered: ‎10-14-2013
My Device: Z10
My Carrier: Cosmote

Re: Laggy Image Listview

I all ready checked that, but the images are loaded into a list and then passed into the model. As i saw, there is nothing that i can do when i load the images directly from the QML
Please use plain text.
Regular Contributor
coolneo
Posts: 56
Registered: ‎06-25-2012
My Device: non-blackberry user
My Carrier: Airtel

Re: Laggy Image Listview

hi sorry but i dont understand your statement that images are loaded into the list and passed in the model. With the example BBSJdev has mentioned until the image loads there will a activity indicator and images there are loaded asychronously.

 

One more good example of async image loading is WebImageView !!

Please use plain text.