Answers for "how to set radio button horizontal in android"

2

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
0

android studio radio group horizontal

<RadioGroup
   android:id="@+id/radioG"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content" 
   android:orientation='horizontal'>
Posted by: Guest on January-04-2021

Code answers related to "how to set radio button horizontal in android"

Browse Popular Code Answers by Language