mercredi 20 juillet 2016

EditText error not aligned to the top

I am trying to align the error popup to the top of the EditText, but nothing works

This is my code and a editText screenshot

 <!-- Body -->
    <EditText
        android:id="@+id/inputBody"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:textSize="14sp"
        android:gravity="top"
        android:layout_gravity="top"
        android:inputType="textMultiLine"
        fontPath="fonts/Roboto-Regular.ttf"/>

Screenshot

It works great for the text with gravity=top

Aucun commentaire:

Enregistrer un commentaire