I was also interested, Daniel Wilson collected the documentation, but for the unprepared eye, this does not mean much. Here's what it means: βextraction modeβ refers to the type of view that is displayed when the space is too small, such as the landscape on the Phone. I am using Galaxy S4 with Google Keyboard as IME.
Landscape interface without visible IME
Based on the focus (in the description), you can see the TextInputLayout in action by clicking a hint outside the editor. Nothing special here, this is what TextInputLayout should do.

Editing landscape user interface with empty name field
By editing the name, you can see that the IME does not give you a hint that you are editing.

Editing landscape user interface empty Description field
As you edit the description, you can see that the IME gives you a hint of what you are editing.

Layout Layouts
The difference between the two fields is their type EditText VS TextInputEditText . The important thing is that TextInputLayout has android:hint , not wrapped EditText, this is the case when TextInputEditText several lines of Java code are of great importance.
Name field
<android.support.design.widget.TextInputLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="Item Name" > <EditText android:id="@+id/name" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </android.support.design.widget.TextInputLayout>
Description field
<android.support.design.widget.TextInputLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="Item Description" > <android.support.design.widget.TextInputEditText android:id="@+id/description" android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="textMultiLine" android:minLines="4" android:scrollbars="vertical" /> </android.support.design.widget.TextInputLayout>
TWiStErRob Mar 28 '16 at 18:53 2016-03-28 18:53
source share