alex2k8 alex2k8 - 4 months ago 55
Android Question

Android: How to change CheckBox size?

I would like to make CheckBox a bit smaller/bigger, how can I do this?

Answer

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" />

The trick is on how to set the drawables. Here's a good tutorial about this.

Comments