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:

But when it EditTextloses focus, the prompt disappears completely:

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>
David source
share