Patrick,

I would suggest using a custom ArrayAdapter that uses the 'view
holder' concept to manage the child views.
Also instead of using a linearlayout I would use a relative layout as
it will render faster because your layout tree won't be as deep.

Im not use how you are 'lazy loading' now, but using a separate thread
that loads the images should do the trick, as it will not lock up the
UI thread.

-theSmith

On Dec 10, 4:19 am, Patrick Plaatje <[email protected]> wrote:
> Hi All,
>
> i'm developing an application which has an listview. I'm currently creating
> the list item view dynamically from code (linearlayout, which includes 2
> textviews and 1 imageview), but i'd like to use an XML resource for this. I
> read it isresource intensive when getting this view using findViewById
> within a loop. I thougth of using a custom adapter for this, but am not sure
> on how to include lazy loading of the image then. Anyone has some
> suggestions for this?
>
> Regards,
>
> Patrick

-- 
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

Reply via email to