RadioButton as flat button?

前端 未结 4 598
不思量自难忘°
不思量自难忘° 2020-12-31 04:45

Is there a way to style a RadioButton as a flat button? I have four options:

| btn1 | btn2 | btn3 | btn4 |

instead of having the little rad

4条回答
  •  失恋的感觉
    2020-12-31 05:27

    Yes, you can change the drawable used for a radio button.

    android:button (or setButtonDrawable) controls the image used for the circle. Set it to null if you want no image.

    You could then set the background of the radio button with android:background or setBackgroundResource to a normal button-style background.

提交回复
热议问题