我们如何能减少复选框的大小,请给我一个想法 [英] how can we reduce the size of checkbox please give me an idea
本文介绍了我们如何能减少复选框的大小,请给我一个想法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们怎样才能减少复选框的大小?请给我一个想法。
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.
这篇关于我们如何能减少复选框的大小,请给我一个想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文