Android RadioGroup 设置某一个选中或者不可选中的方法
如题目的要求,可以参考如下代码:
publicvoidgenerAeidLength(RadioGroupradGroup){
if(ClientAPI.getAeid().length()==10){
System.out.println(ClientAPI.getAeid());
type_kyc.getChildAt(1).setEnabled(false);
}else{
System.out.println(ClientAPI.getAeid());
type_kyc.getChildAt(0).setEnabled(false);
type_kyc.getChildAt(1).setEnabled(true);
type_kyc.check(R.id.company);
kyc_type_select=CommDataInterface.QUESTION_COMPANY;
type_kyc.getChildAt(2).setEnabled(false);
}
}
以上这篇AndroidRadioGroup设置某一个选中或者不可选中的方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持毛票票。
热门推荐
10 财运虎年祝福语简短语
11 单亲爸爸春节祝福语简短
12 狗狗上厕所训练
13 植物种植祝福语简短
14 翻译考试祝福语朋友简短
15 个人周年庆简短祝福语
16 狗狗怎么训练
17 分别祝福语简短搞笑英文
18 生日广州男生祝福语简短