jeudi 7 janvier 2016

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

I would like to align CheckBox "symbol" to the top of its description.

What I have now: before

What I want to 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 to achieve this by manipulating gravity attributes, but it doesn't work.




Aucun commentaire:

Enregistrer un commentaire