I’m using a simple_list_item_checked listview and am programmatically setting checked to true / false. However, when a user selects an item from the list, it changes the state of the checkbox.
It only shows it for a second, because it immediately redirects to another activity.
How can I prevent the checkbox from changing when the user clicks on it?
I ended up creating a custom ArrayAdapter class, following this tutorial http://www.mkyong.com/android/android-listview-example/
But instead of using if String.equals(” “), I used a boolean value called checked. If it’s true, use a “checked box” image and if false, use an “unchecked box” image.
Thanks for the help guys. I hope this is help to people in the future.