简体   繁体   English

选择单选按钮后启用复选框

[英]Enable CheckBoxes after Radio Button is selected

Im working with SharedPreferences/Settings where I want to have two radiobuttons. 我正在使用SharedPreferences / Settings,我想有两个单选按钮。 When one of the radiobuttons is selected, it should enable a list of checkboxes and disable the checkboxes under the other radiobutton. 选择一个单选按钮时,它应启用复选框列表,并禁用另一个单选按钮下的复选框。 Any idea how to approach this? 知道如何处理吗? thanks! 谢谢! (: (:

使用OnCheckedChangeListener ,使用yourchestbox.setEnabled(true);获取值并启用复选框yourchestbox.setEnabled(true);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM