Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 android 的新手,我已经创建了警报对话框,我保留了用于选择多个工作日的复选框,在选中复选框的天数后,我需要将这些选定的日期设置为文本视图。我搜索了很多,但我没有找到满意的答案,请任何人都可以帮助我解决这个问题。提前致谢
试试下面的代码
checkBox.setSelected(selected);
尝试这个
if(checkBox.isSelected()){ String s = checkBox.getText().toString(); }
这样您就可以获得“所有人的价值”复选框。
最后,您可以将该字符串值设置为您的textview.
textview