Re: [android-developers] How to get the state of checkbox in a onListItemClick in Listactivity?

2010-10-24 Thread Amy Wu
Thanks TreKing very much. I tried many ways. at the if(), I used this to get the checkbox. And it worked. arg0 instanceof CheckBox Thanks your response. Amy Wu geish...@gmail.com On 2010-10-22 1:53, TreKing wrote: On Thu, Oct 21, 2010 at 2:55 AM, LiangLiang Wu geish...@gmail.com

[android-developers] How to get the state of checkbox in a onListItemClick in Listactivity?

2010-10-21 Thread LiangLiang Wu
f my list has 10 items.. the onclick listener is fired only for the 10th item. How to get the state of checkbox in a onListItemClick in Listactivity? I have a class OnItemClickListener like this: private class OnItemClickListener implements OnClickListener { private int mPosition;

Re: [android-developers] How to get the state of checkbox in a onListItemClick in Listactivity?

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 2:55 AM, LiangLiang Wu geish...@gmail.com wrote: but only when I check the last item's checkbox, it go A correctly. Other items' checkbox are checked they just go B. Who could tell me where I am wrong. Well, you're checking if the argument is the same as the reference