The issue is the ListView is recycling views

to Solve

For example Have an arrayList and mainitain the check status in that list

Say Item 3 is selected this should be maintained in your arrayList

When GetView is called
Set your checkbox accordingly

So if item 3 is called then from scenario above it should be set else unset
it

I would suggest to print some log statements in get view method and print
the hash of the convertView you are getting.
Also please use convertVIew if you are not using one.

Read Romain guy blog about using listView

Hope this helps.

On Sat, May 1, 2010 at 3:27 AM, David <[email protected]> wrote:

> Hey,
>
> I have the exact same problem. Can anyome help?
>
> Regards
>
> David
>
> On May 1, 3:02 am, a7med <[email protected]> wrote:
> > dear developers ;
> > i am developping an Android application for the management of the
> > contact list.
> > but i am having a problem : the list contain for every contact a
> > checkbox to chose which one to modify for example, the problem is that
> > when the list became longer than the phone screen and the scrolling is
> > active; when i select a check box , a second one is automatically
> > selected in the bottom of the list for example , but his action is not
> > performed.
> >
> > the problem is the automatic selection of the second checkbox;
> > please what s the reason for a such problem.
> > how can i fix it ??
> >
> > Best Regards
> >
> > --
> > 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 athttp://
> 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]<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