I have a layout with a single TextInputLayout
with an EditText
inside it.
When the layout is loaded the EditText
is immediately in edit mode, the keyboard is not up but the cursor is blinking and the hint is not inside the EditText
but above it.
I want the hint to be animated out of the EditText only the the use first clicks the EditText
.
How can I accomplish that? I have tried clearFocus() on both the EditText
and the TextInputLayout
.
My xml:
<android.support.design.widget.TextInputLayout
android:id="@+id/textInputLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<EditText
android:singleLine="true"
android:id="@+id/case_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Case name" >
</EditText>
</android.support.design.widget.TextInputLayout>