如何设置此收音机组的按钮色调
RadioGroup rg = (RadioGroup) view.findViewById(R.id.radiogroup);
RadioButton[] rb = new RadioButton[answerOption.size()];
for (int i = 0; i < answerOption.size(); i++) {
rb[i] = new RadioButton(getContext());
rg.addView(rb[i]);
rb[i].setText(answerOption.get(i).trim());
}
答案 0 :(得分:1)
rb[i].setButtonTintList(ColorStateList.valueOf(Color.BLUE));