Hi Nguyen,

Just wanted to point out that the problem was not mine.  I was answering the
question of the original poster in a very broad, high-level sense.  It
wasn't a question...  ;-)
On Feb 22, 2011 4:11 PM, "Justin Anderson" <[email protected]> wrote:
> This is a side-effect of view recycling... You have to create some sort of
> caching mechanism. When your adapter's getVIew() method you then consult
> the cache and set the checkbox state accordingly.
>
> It is a bit of a pain, but as you said in your post... if you don't use
view
> recycling then the performance suffers. This caching mechanism is a small
> price to pay to gain the extra performance benefits of view recycling.
>
> Hope that helps,
> Justin
>
> On Mon, Feb 21, 2011 at 9:25 PM, nidroid <[email protected]> wrote:
>
>> I am facing a very strange behaviour in my ListView, I have a ListView
with
>> some check boxes, when I try to check any box slowly everything works
fine.
>> But when I try to check / uncheck this check box something weird starts
>> happening like there are 6 items visible at a time on a list view , so If
I
>> rapidly check/uncheck first item of the list then last (sixth element)
also
>> gets affected, similarly on second item 5th item also gets affected, and
on
>> 3rd item 4th item gets affected, I have debugged the same and found that
the
>> event which I am trying to tap on first item is getting associated with
the
>> 6th item itself and hence the 6th item is getting affected.
>>
>> As we know the list adapter doesn't creates the view of the same 6 items
>> everytime instead it just binds with the existing view everytime, so if i
>> create a new view and binds the adapter with this new View everything
works
>> fine, but that leads to a very slow performance.
>>
>> So Please help me with the same.
>>
>> Thanks in advance
>> Rahul
>>
>> --
>> 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 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