My definition XML is:
<CheckedTextView android:textSize="18.0dip"
android:text="@string/text"
android:textColor="@color/white"
android:id="@+id/test"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:checkMark="?android:attr/textCheckMark" />
Everything works fine but the text always at the top left of the view and the checkbox is center vertical. They are not at the same line. How to align them.
add this line
android:gravity="center_vertical"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With