On Thu, Jun 7, 2012 at 6:37 AM, Ash <anan...@gmail.com> wrote:

> as soon as I receive an item, I have to immediately add it, sort it and
> display it.
>

Use a collection data structure that maintains sorting and is optimized for
inserting new elements. Adding an item to an ArrayList and then sorting *each
time* is asking for slowness.


> So how can I properly implement the 'getGroupView' function so that it has
> the correct convertView of my item at any given time?
>

Updating the convertView is what you're supposed to be doing, as it can and
will contain data from rows that no longer visible and thus eligible for
recycling.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to