1. you can look at the video from Google IO conference 2009, called
Turbo charging your UI's by Romain Guy; he discussed some of the
optimizations you can do when working with ListViews.
2. You can read Mark Murphy's series of ListView tutorials at android
guys titled Fancy ListViews:
http://www.google.co.in/url?sa=t&source=web&ct=res&cd=4&ved=0CBYQFjAD&url=http%3A%2F%2Fwhyandroid.com%2Fandroid%2F182-fancy-listviews-part-one.html&rct=j&q=androidguys+fancy+listviews&ei=JCYhS__4O9CTkAXv4sDsCg&usg=AFQjCNFmQf-vjOXIYwlkGzGNjmDQHp-cmA


On Dec 10, 9:33 pm, theSmith <[email protected]> wrote:
> 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