在开发app项目中,有时候不想用系统原生的RadioButton 或者当RadioButton的个数不知道有多少个时,这时候
就要涉及到要动态添加RadioButton ,代码生成RadioButton 的方法
1, 动态添加RadioButton;
2.acitivity中往RadioGroup添加RadioButton
RadioGroup mRadioGroup = findViewById(R.id.custom_group

在开发app项目中,有时候不想用系统原生的RadioButton 或者当RadioButton的个数不知道有多少个时,这时候
就要涉及到要动态添加RadioButton ,代码生成RadioButton 的方法
1, 动态添加RadioButton;
2.acitivity中往RadioGroup添加RadioButton
RadioGroup mRadioGroup = findViewById(R.id.custom_group