Marcelo Baccelli Marcelo Baccelli - 1 year ago 77
Android Question

AutoCompleteTextView float hint

I've tried a lot, but can't make work an

AutoCompleteTextView
float hint using the
TextInputLayout
from support.

It's possible or I need to use an external library?

N J N J
Answer Source

No .

design library itself is enough

include like this

<android.support.design.widget.TextInputLayout
    android:id="@+id/til_id"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="125dp"
    >

    <AutoCompleteTextView
        android:id="@+id/auto_text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:enabled="false"
        android:hint="Id"

        android:singleLine="true"/>
</android.support.design.widget.TextInputLayout>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download