mardi 2 août 2016

how to increase checkbox border without using images in android

Found lot of questions/answers about how to change 1. checkbox color, checkbox borer color etc but not about increasing check box border(border of square).

My checkbox xml code below

 <CheckBox
        android:id="@+id/mChkAgree"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_margin="10dp"
        android:buttonTint="@color/black"
        android:scaleX="1.70"
        android:scaleY="1.70"
        android:text="@string/agree_text"
        android:textColor="@color/black"
        android:textSize="14sp" />

Now the checkbox border is barely visible

enter image description here

So how to increase the border(width) of square shaped check box?

Also I don't want to use images for checkbox, so is it possible without using custom images?




Aucun commentaire:

Enregistrer un commentaire