0

I want to use an icon from FontAwesome as the button for a RadioButton. I want to use something like this as the icon when the RadioButton is selected: https://fontawesome.com/icons/check-circle?style=solid and then default to the regular unselected image when the RadioButton is not selected. Is this possible?

I have taken a look at setting the button attribute of the RadioButton, but this does not appear to work. The RadioButton expects a drawable image, not a string value. This is where I am stuck, since the FontAwesome icons are actually treated as strings.

h_k
  • 1,674
  • 1
  • 24
  • 46

2 Answers2

0

You can download the icon as svg. Here, you can see how to customize a RadioButton.

Downloading FontAwesome icons as SVG

Akn
  • 421
  • 5
  • 9
0

Hello @h_k one alternative way is there to achieve the solution for that you have to take one image view with radio button and you have to just maintain the visibility according to the condition of the visibility of control. When User click on Radio button then display image view and hide radio button Bit it's not the correct solution ;)

Nilesh Panchal
  • 1,059
  • 1
  • 10
  • 24