android - EditText hint disappears with gravity -


i have seen many similar questions 1 think still covers new ground:
1) hint text disappears when set gravity
2) android:ellipsize="start" fixes can have centered hints , centered text
3) why code below still show centered hint text?

    <edittext     android:id="@+id/details"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:gravity="center"     android:hint="use area provide specific identification information including approximate size, vessel name , registration numbers if available"     android:background="@android:drawable/editbox_background"     android:layout_below="@id/details_title"     /> 

is because of fill_parent instead of wrap_content? thought maybe because hint multiline, shortened , still appeared , centered. differences between , other edittexts needed android:ellipsize="start" display correctly. bug?

you need use android:gravity="top" instead of center in order have hint , text start @ top left of box.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -