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 -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -