How to align CheckBox to the top of its description in Android -


i align checkbox "symbol" top of description.

what have now: before

what want have: after

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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -