How to enable single selection in check box in custom list view in android
-
04-07-2021 - |
Domanda
I have a list view.In the row of list view there is 4 text view and a check box. In the text view text set from a Array list.In list view there is more the 20 row. And this is my problem how to enable single selection in check box. At a time i want only a single check box if i check a check box the other is checked it automatically unchecked how it possible. please help me. thanks in advance.
Soluzione
use youcheckbox.setchecked(false)
for unchecking any checkbox
. on any checkbox
click call this method for other clicked checkboxes
or use radioboxes
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow