Android: How to change the Size of the RadioButton

TianDong picture TianDong · Jun 10, 2010 · Viewed 58.5k times · Source

I have many RadioButtons in my app. The RadioButtons are too big for me. Is there any way to make them smaller?

Answer

user901309 picture user901309 · Dec 9, 2015

One quick hacky solution is to scale the button down:

<RadioButton
  android:scaleX="0.5"
  android:scaleY="0.5" />

This works great for going smaller.

For going larger, this tends to cause some clipping from the container View, so you'll likely have to hardcode the height/width of the RadioGroup to fit the scaled buttons. The button drawable can also get noticeably pixelated the larger you go, so it's not really great if you want something 3x larger...