Answers for "how to change radio button appearance in android studio"

2

how to change color of radio button in android

<RadioButton
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/radio"
    android:checked="true"
    android:buttonTint="@color/your_color"/>
Posted by: Guest on October-21-2020
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

Code answers related to "how to change radio button appearance in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language