On Wednesday, September 28, 2011 12:49:15 PM UTC-5, TreKing wrote:
>
> On Wed, Sep 28, 2011 at 12:17 PM, Studio LFP <[email protected]> wrote:
>
>> Just create the array of object, populate them, create their internal view 
>> and return the objects via index in an ArrayAdapter to a ListView.
>
>
> This of course throws out the recycling optimization ListVIew does, so may 
> not be practical for large data 
> sets.<http://sites.google.com/site/rezmobileapps/treking>
>

You can easily get around this by using an ArrayList that can be added to or 
removed from as needed and adding lazy loading to the object to get the data 
and populate the view when it is asked to show itself.

Based on what he is trying to do, he's still holding all the data anyway.  
Putting it in a view object instead of just a regular object doesn't add 
that much memory, but makes the application a ton faster and a lot easier to 
write.  Those alone make it worth it.

Steven
Studio LFP
http://www.studio-lfp.com

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