How to align CheckBox to the top of its description in Android -
i align checkbox
"symbol" top of description.
current xml:
<checkbox android:id="@+id/register_checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/register_hint"/>
i've tried achieve manipulating layout_gravity
attributes, doesn't work.
android:gravity="top"
fix problem:
<checkbox android:id="@+id/register_checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/register_hint" android:gravity="top"/>
note android:gravity
different android:layout_gravity
.
Comments
Post a Comment