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

Capture and play voice with Asterisk ARI -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -

c# - Can I intercept a SOAP response in .NET before a content type binding mismatch ProtocolException? -