Set hint on TextInputLayout (#1962)
Set hint on TextInputLayout instead of EditText so that it animates properly when you start typing. From documentation: * The hint should be set on the TextInputLayout, rather than the EditText. If a hint is specified * on the child EditText in XML, the TextInputLayout might still work correctly; TextInputLayout * will use the EditText's hint as its floating label. However, future calls to modify the hint will * not update TextInputLayout's hint.
Showing
想要评论请 注册 或 登录