Android的:如何改变复选框的大小?复选框、大小、Android

由网友(酒过三巡ず)分享简介:我想提出的CheckBox有点小/大,我该怎么办呢?I would like to make CheckBox a bit smaller/bigger, how can I do this?推荐答案您只需要设置相关的可绘制并设置它们的复选框:You just need to set the related d...

我想提出的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" />

诀窍是如何设置可绘制。 这里有一个关于这个一个很好的教程。

阅读全文

相关推荐

最新文章