Listview behaves in a different way . it tries to recycle views if it can .
From your code you are not recycling views , you should try to use
If(convertview ==null)
{
create new view
}
else
{
map and use it
}
Will give you some hint
1) put some log statement in get view and check how many
On Tue, Apr 27, 2010 at 6:58 PM, Jeruliu jeru@gmail.com wrote:
but there is way to detect the position of the item clicked???
Going off of what you have already, you could put the incoming position in
the checkbox's tag, then retrieve it when it's clicked.
Thanks buddy, but it still doesn't work in my case, now i will attach more
informatin below.
My Adapter class
public class ProfileAdapter extends SimpleAdapter {
Activity mContext;
CheckBox cb;
ProfileDAO mProfileDao;
int mId;
int mPosition;
public
sorry i forgot to mention that even i set the position to checkbox tag, the
log always output the position of the last element in the onCheckedChanged
On Thu, Apr 29, 2010 at 6:36 AM, Jeru Liu jeru@gmail.com wrote:
Thanks buddy, but it still doesn't work in my case, now i will attach more
Dear all,
I've tried my every effort to fight with this issue for two days but
no any luck.
What I want to do is: Display a list view with 3 elements: title,
subtitle and a checkbox. It will be ideal that the event handler only
fires when user click on the CheckBox but not the list item.
I
5 matches
Mail list logo