说明:
TextInputLayout是一个输入时自动提示的控件,继承LinearLayout,属于android.support.design.widget包下,用于包装EditText,实现输入时自动悬浮hint的内容,并且可以显示当前已输入字数等功能。
app:counterEnabled="true" 显示“0/最多字数”计数信息app:counterMaxLength="11" 显示最多字数信息
app:counterOverflowTextAppearance="@android:style/TextAppearance.DeviceDefault.Large" 当字数最大限制时的字体格式
app:hintAnimationEnabled="true" 启用hint动画效果
app:errorEnabled="true" 显示错误信息
app:errorTextAppearance="@android:style/TextAppearance.DeviceDefault.Large" 错误信息的字体格式