我们怎样才能减少复选框的大小?请给我一个想法。
How can we reduce the size of checkbox? Please give me an idea.
更新:这个从API仅适用17日起...
UPDATE: this only works from API 17 onwards...
复选框
源自文本的高度和形象。
CheckBox
derives its height from the TEXT as well as the image.
在你的XML来设置这些特性:
Set these properties in your XML:
android:text=""
android:textSize="0sp"
当然,如果你想没有文本(为我工作),这仅适用。
Of course this only works if you want no text (worked for me).
如果没有这些变化,复选框
是给我身边的我的形象幅度较大,所提到的乔·普兰特。
Without these changes, the CheckBox
was giving me a big margin around my image, as mentioned by Joe Plante.