Android RadioGroup 设置某一个选中或者不可选中的方法
时间:2020-10-15 23:16:59|栏目:Android代码|点击: 次
如题目的要求,可以参考如下代码:
public void generAeidLength(RadioGroup radGroup) {
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);
}
}
上一篇:Android Selector和Shape的使用方法
栏 目:Android代码
本文标题:Android RadioGroup 设置某一个选中或者不可选中的方法
本文地址:http://www.codeinn.net/misctech/11886.html






