I try to align four checkboxes but one is not in the center of the other. If I shorten the text it fits but if its longer it looks like in the screenshot. The problem is it will be in different languages so the text size can be different.
This is my code:
<CheckBox
android:id="@+id/cb1"
android:scaleX="1.3"
android:scaleY="1.3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="23dp"
android:text="@string/unmounted"
android:textColor="@color/textBlack"
android:layout_below="@+id/abc"
android:layout_toEndOf="@+id/imageView6"
android:focusable="false"/>
<CheckBox
android:id="@+id/cb2"
android:scaleX="1.3"
android:scaleY="1.3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/problem_not_working"
android:textColor="@color/textBlack"
android:layout_below="@+id/cb1"
android:layout_alignStart="@+id/cb1"
android:focusable="false"/>
<CheckBox
android:id="@+id/cb3"
android:scaleX="1.3"
android:scaleY="1.3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/problem_cable_defective"
android:textColor="@color/textBlack"
android:layout_below="@+id/cb2"
android:layout_alignStart="@+id/cb2"
android:focusable="false"/>
<CheckBox
android:id="@+id/cb4"
android:scaleX="1.3"
android:scaleY="1.3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/problem_cable_tie"
android:textColor="@color/textBlack"
android:layout_below="@+id/cb3"
android:layout_alignStart="@+id/cb3"
android:focusable="false"/>
Aucun commentaire:
Enregistrer un commentaire