use of androidx.appcompat.widget.AppCompatRadioButton in project J2ME-Loader by nikita36078.
the class ChoiceGroup method initButtonGroup.
private void initButtonGroup() {
buttongroup.setOrientation(LinearLayout.VERTICAL);
Context context = getOwnerForm().getParentActivity();
int size = selected.size();
if (buttongroup instanceof RadioGroup) {
for (int i = 0; i < size; i++) {
addButton(new AppCompatRadioButton(context), i, strings.get(i), images.get(i), selected.get(i));
}
} else {
for (int i = 0; i < size; i++) {
addButton(new AppCompatCheckBox(context), i, strings.get(i), images.get(i), selected.get(i));
}
}
}
Aggregations