And what about this? (from first to last)
for (int i = first; i <= last; i++) {
TextView v = (TextView)el.getChildAt(i);
it can give an exception? or it's the better way?
thanks
El lunes, 4 de febrero de 2013 23:09:49 UTC+1, saex escribió:
>
> 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 [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.