ListView from cursor with checkbox
Posted
by
ekawas
on Stack Overflow
See other posts from Stack Overflow
or by ekawas
Published on 2011-01-03T16:57:22Z
Indexed on
2011/01/04
5:53 UTC
Read the original article
Hit count: 321
Hi,
I have a Listview that looks like the following:
checkbox:textview {0 .. n}
I have a OnCheckChangedListener that listens for checkbox changes (checkbox has focusable set to false as recommended by http://www.mousetech.com/blog/?p=74).
The behaviour that I am looking for is that users can click the checkbox to set its state, and they can click on the listview item to get a description.
Currently, checkbox state is saved properly and if you click on an item, then it shows a description. However, if you first change a state and then click to get the description, the checkbox reverts to a prior state. In fact all checkboxes revert back to a prior state.
Anyone know how i can get this working?
Thanks.
© Stack Overflow or respective owner