hello,

i have my items (which are displayed in the listview) in a ListAdapter,
which is a kind of list or arraylist. the listAdapter is attached to the
ListView with .setAdapter method.

there in the ListAdapter you must retrieve your items easily (its a list
that you manage on your own).

When you update some element, call the .notifyDataSetChanged() of the
adapter, and the ListView will update itself with the new changed values.

Regards!

On Sun, May 23, 2010 at 12:58 PM, ls02 <[email protected]> wrote:

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