Monday, February 4, 2013

[android-developers] Re: Efficient way to update one of the childs of a ExpandableListView group?

well, i finally did it with TextView v = (TextView)el.findViewById(idx);

and setId instead of setTag

i think this is fastest than the for, what do you think?

El lunes, 4 de febrero de 2013 22:52:57 UTC+1, skink escribió:


saex wrote:
> Oh!! finally i achieved it! nice! thanks a lot!
>
> btw it's not fair to iterate until you reach the correct children, it is l
> inear cost. Does not exist a fastest way to reach the view that you need to
> update?
>
>

I don't think its slow: there are max 10 or something visible
children, if you still think it's slow use some hashmap

pskink

--
--
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+unsubscribe@googlegroups.com
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 android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment