saex wrote: > well, i [sic] 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? >
Under the hood,m doesn't 'findViewById()' do a linear search? Why are you worried about speed here?skink escribió: saex wrote: > > Oh!! finally i [sic] 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 > Don't worry about speed until measurement shows you have a speed problem. -- Lew -- -- 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.

