Tooltip not displayed using TextInputLayout in unfocused state

I am using a new one TextInputLayoutfrom the Android design library,

When it focuses EditText, everything is fine, and I see a hint over EditText:

enter image description here

But when it EditTextloses focus, the prompt disappears completely:

enter image description here

I expect the clue to return to EditTextwhat am I missing?

xml below.

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="20dp">

    <android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="Try me!"/>
    </android.support.design.widget.TextInputLayout>

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:hint="Try me 2"/>
</LinearLayout>
+4
source share
1 answer

This problem has been fixed since 22.2.1, update the Android SDK.

+4
source

All Articles