Auto Focus TextInputLayout

I have a layout with one TextInputLayout with an EditText inside it.

When the layout is loaded, EditText is in edit mode, the keyboard is not up, and the cursor is blinking, and the tooltip is not inside EditText , but above it.

I want the tooltip to be animated from EditText, only the first clicked the EditText button.

How can i do this? I tried clearFocus () for both EditText and 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> 
+5
source share
1 answer

try it

 editText.setCursorVisible(false) 
-1
source

All Articles