Android的:如何改变复选框的大小? [英] Android: How to change CheckBox size?
本文介绍了Android的:如何改变复选框的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想提出的CheckBox有点小/大,我该怎么办呢?
I would like to make CheckBox a bit smaller/bigger, how can I do this?
推荐答案
您只需要设置相关的可绘制并设置它们的复选框:
You just need to set the related drawables and set them in the checkbox:
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="new checkbox"
android:background="@drawable/my_checkbox_background"
android:button="@drawable/my_checkbox" />
诀窍是如何设置可绘制。 这里有一个关于这个一个很好的教程。
这篇关于Android的:如何改变复选框的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文