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设置某一个选中或者不可选中的方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持毛票票。