I have a ListView
that should display items that contain some text and an image.
The data is loaded from a local SQLite
db file (that contains the text and image URLs).
I'd like to:
- Get the text, url from DB.
- Asynchronously download the image from the URL
- Bind both values to the
ListView
(using theSimpleCursorAdapter
).
So far, i was able to read the values from DB, however i am not sure how i can run the bind only AFTER i have successfully loaded each image?
In other words, i'd like to asynchronously bind each element as it's loaded to the appropriate UI item.