Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create custom Android radio buttons?

I've got a couple radio button options in my android app, but I want them to look totally different. More something like below (quick mockup) in which you simply click the words you want and it makes them bold and underlined.

enter image description here

Does anybody know how I can achieve something like this? All tips are welcome!

like image 328
kramer65 Avatar asked Jan 19 '26 21:01

kramer65


1 Answers

Generally speaking, to override the look of default widgets, you'll need to create a drawable folder and put all of your xml definitions in that folder. Then reference that xml file within the RadioButton block of your layout.

Here's a good blog post on how to do all that:

http://blog.devminded.com/posts/custom-android-radiobutton

like image 173
SBerg413 Avatar answered Jan 22 '26 10:01

SBerg413



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!