【发布时间】:2018-09-06 21:08:38
【问题描述】:
我想使用 FontAwesome 中的图标作为 RadioButton 的按钮。我想在选择 RadioButton 时使用类似这样的图标:https://fontawesome.com/icons/check-circle?style=solid,然后在未选择 RadioButton 时默认为常规未选择的图像。这可能吗?
我查看了设置 RadioButton 的 button 属性,但这似乎不起作用。 RadioButton 需要一个可绘制的图像,而不是字符串值。这就是我卡住的地方,因为 FontAwesome 图标实际上被视为字符串。
【问题讨论】:
标签: android radio-button font-awesome