Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change border color of radio button in android? [duplicate]

How to change border color of radio button in android?

I want to change circle color of android radio button.

Thanks in advance. Any help is greatly appreciated.

I have try different soluation and concern if any property is there other that drawable image

like image 487
Abhijit Shelar Avatar asked Apr 25 '13 11:04

Abhijit Shelar


1 Answers

Yes, this is the property you are looking for: buttonTint, but only works on api level 21 or above

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

in your values/colors.xml put your color in this case a reddish one:

<color name="your_color">#e75748</color>

Result:

Colored Android Radio Button

like image 148
Jorge Arimany Avatar answered Sep 21 '22 20:09

Jorge Arimany