Set custom color of radio button- Android

  • Replies:1
  • OpenNot stickiedAnswered
  • Forum posts: 2

Mar 26, 2019, 6:32:39 PM via Website

I want to change the color of circle of RadioButton, I could not understand which property to set. The background color I am having is black so it gets invisible. I want to set the color of the circle to white.

Reply
Best answer
  • Forum posts: 816

Mar 26, 2019, 8:56:04 PM via Website

Goto values/colors.xml

<color name="radcol">#fff</color>    //add this line

<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radio"
android:checked="true"
android:buttonTint="@color/"radcol"/>

— modified on Mar 26, 2019, 9:05:11 PM

Ready To Help You.

Helpful?
Reply