Watch this video from Google I/O, it will be very helpful.

http://code.google.com/events/io/2010/sessions/world-of-listview-android.html

In particular from about minute 9 for the next few minutes will give
you some very good and practical tips to make your List View faster.


In GetView, check to see whether ConvertView is null, if not, use that
instead of creating a new view.  See 9:55 in video
Use a ViewHolder for storing the id tags of the elements in the view
so you don't have to keep using GetViewById.  See 11:56 in video

Gary



On Jun 14, 7:31 am, Moto <[email protected]> wrote:
> Moss could you point me to romain guys shelves app location :) thx..
>
> On Jun 12, 11:18 am, Moss <[email protected]> wrote:
>
> > Just to make a small update on the issue, I looked a bit at romain
> > guys shelves app which helped me a lot and my app updates now seamless
> > 15k feed items!
>
> > On 6 mayo, 07:12, grace <[email protected]> wrote:
>
> > > Hi,
>
> > > I have tried the same thing with content provider and even that take
> > > some time to load the feeds..
> > > so i think its nothing to do with the db or content provider
>
> > > On May 4, 2:14 am,Moss<[email protected]> wrote:
>
> > > > Hi there,
>
> > > > I have made an app that makes extensive use of an internal sqlite db
> > > > to save news feeds. Those feeds are parsed from an URL and then cached
> > > > in the DB so that I'm able to re-add them to a ListView after a
> > > > onPause()/onResume() pair. It's all quite nice but it takes about 2 or
> > > > 3 seconds to restore the feed and showup the filled ListView.
>
> > > > Apart from 1 ListView it's actually a TabHost with 3 ListActivities
> > > > and in each of their ListView's I got about 50 items. So I can not not
> > > > hold all 150 items at once in memory. That's the reason I cache them
> > > > to a DB so I'm able to clear them out in their onPause() call.
>
> > > > Why is it so slow? Would it be better to implement a ContentProvider?
> > > > And, would it really speed the app up?
>
> > > > Thanks in advanced.
>
> > > > Cheers,
> > > >  Moss
>
> > > > --
> > > > 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 
> > > > athttp://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > 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 
> > > athttp://groups.google.com/group/android-developers?hl=en

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