Design Android EditText to show error message as described by google

There’s no need to use a third-party library since Google introduced the TextInputLayout as part of the design-support-library. Following a basic example: Layout <android.support.design.widget.TextInputLayout android:id=”@+id/text_input_layout” android:layout_width=”match_parent” android:layout_height=”wrap_content” app:errorEnabled=”true”> <android.support.design.widget.TextInputEditText android:id=”@+id/edit_text” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:hint=”Enter your name” /> </android.support.design.widget.TextInputLayout> Note: By setting app:errorEnabled=”true” as an attribute of the TextInputLayout it won’t change it’s size once an error … Read more