Hi Mark,
Thank you for the reply.
> You could use iv.setImageURI(Uri.fromFile(...)).
Oh great, yes I did read that. :)
>> However when I scroll and the images are loaded they seem to turn up
>> in the wrong places.
>
> Are you doing the image loading in the main application thread, or a
> background thread (e.g., AsyncTask)?
I believe I am using the main application thread - perhaps this would be better
using a background thread. For the moment though the list is small.
> If you are using a background thread, bear in mind that you may have
> scrolled before the image gets put into the list.
I'll keep this in mind when moving to this method.
> Are you sure your SDIReleaseWrapper is pointing to the right ImageView?
Yes I performed a search and the only layout (or xml file for that matter) with
release_icon in it is release_row, which I am trying to populate.
> Is your above bitmap-loading code part of populateFrom()?
Yes that is correct:
void populateFrom(Cursor c) {...
There is a unique id in the Cursor (result) I can use to reference the file.
I omitted that the adapter (SDIReleaseAdapter) implements SectionIndexer
although I'm assuming this won't affect things.
Regards,
Julius.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en