RadioButton as flat button?

前端 未结 4 610
不思量自难忘°
不思量自难忘° 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:24

    Yes it is possible.

    In xml set, android:button="@null"

    And in case you want to do it dynamically, setButtonDrawable(new StateListDrawable());

提交回复
热议问题