How uncheck items in AlertDialog (setMultiChoiceItems)?

前端 未结 4 1702
广开言路
广开言路 2020-12-06 16:49

I\'d like to clear selected items when the total came to three items selected, I am doing as follows but is not working ...

AlertDialog.Builder builder = new         


        
4条回答
  •  温柔的废话
    2020-12-06 17:45

    for (int i = 0; i < visitArray.length; ++i) {
                        _selections[i] = false;
                        ((AlertDialog) dialog).getListView().setItemChecked(i, false);
    }
    

提交回复
热议问题