lundi 22 juin 2020

Why don't work Gravity center for Check Box

I have a checkBox and set gravity center but the box doesn't come center

this is my XML file

<CheckBox
    android:id="@+id/checkBox"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginStart="32dp"
    android:layout_marginTop="8dp"
    android:gravity="center"
    android:checked="false"
    android:clickable="false"
    app:buttonTint="@color/colorPrimary"
    android:scaleX="1.4"
    android:scaleY="1.4"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

CheckBox image here




Aucun commentaire:

Enregistrer un commentaire