Answers for "set checked radio group android"

1

android radiobutton setchecked

radioGroup.check(R.id.radioButtonId);
Posted by: Guest on February-26-2021
0

how to set radio button checked in android programmatically

In your layout you can add android:checked="true" to CheckBox you want to be selected.

Or programmatically, you can use the setChecked method defined in the checkable interface:

RadioButton b = (RadioButton) findViewById(R.id.option1);
b.setChecked(true);
Posted by: Guest on March-19-2021

Code answers related to "set checked radio group android"

Browse Popular Code Answers by Language