I have a listview and a button. Only when I press the button I want the entire ListView to be unselectable. My ListView is a collection of checkboxes and I want to prevent change in the state of checkboxes when I press the button so I want to disable the listView.
Asked
Active
Viewed 24 times
0
-
Check this answer https://stackoverflow.com/questions/2183610/android-how-to-disable-list-items-on-list-creation – Abanoub Asaad May 17 '21 at 20:04
-
I tried all these but even when i Override all methods to return false, after clicking the button it still allows me to change the ListView checkbox states – Abhik Ray May 17 '21 at 20:07
-
could show some code about the Adapter ?and the button your want to disable? – Matrix May 18 '21 at 02:01