On Thu, May 16, 2013 at 3:14 AM, Miha <[email protected]> wrote:

> One possible solution I see is modifying the backing adapter
> implementation and providing a different view based on the state of the
> item, but that seems like wrong approach -- I would have to update the
> adapter with information on the selected item and call
> notifyDataSetChanged, which would (I suppose) result in an unnecessary
> re-drawing of the whole list.


Note though, that it doesn't redraw the ENTIRE list... just the items that
are visible on the screen.  So, even if you have 500 items in your list,
you are only going to be redrawing the 10-20 items that are actually
visible to the user.  I've used this approach before and it works quite
well.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to