I understand I can walk through all children, but this is very bad
approach, very inefficient and takes a lot of CPU time. When you need
to update several child views in the list several times a second this
drastically impacts the peformance. I need to retrieve the child view
quickly using some hash map or other quick and efficient way.

On May 23, 8:02 am, Kostya Vasilyev <[email protected]> wrote:
> There are methods in ListView for getting the first/last visible row. I
> think if you iterated just over these, it would be fast enough.
>
> 23.05.2010 14:59 пользователь "ls02" <[email protected]> написал:
>
> I need to frequently update listview row, What's the best way to find
> the row? I wonder how findViewById and findViewByTag work? Do they
> walk over all child views and check each view ID or tag? Because this
> could be very inefficient. Or they have some sort of hash map to
> quickly retrieve the requested view by ID or tag?
>
> Or maybe there is another way of updating listview items? I know
> listview reuses views and as you scroll they essentially hand adapter
> the same views in getView method.
>
> --
> 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]<android-developers%[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