这两天使用textinputlayout的时候发现一个问题,如果输入的内容为错误的话,会吧EditText变成红色,之后即使输入正确也不会变回原来的颜色。有什么好的解决办法么?谢谢
--------------------------------------------------
app:counterEnabled="true"
app:counterMaxLength="5"
---------------------------------------------------
还有一个问题,我在代码里加入这两个属性之后报错,提示
Error:(22) No resource identifier found for attribute 'counterEnabled' in package
Error:(22) No resource identifier found for attribute 'counterMaxLength' in package
<android.support.design.widget.TextInputLayout
android:id="@+id/usernameWrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/TextInputLayoutTheme"
app:errorEnabled="true">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="@color/blue"
android:hint="Username"
android:inputType="textEmailAddress"
android:textColor="@color/black" />
</android.support.design.widget.TextInputLayout>
--------------------------------------------------
app:counterEnabled="true"
app:counterMaxLength="5"
---------------------------------------------------
还有一个问题,我在代码里加入这两个属性之后报错,提示
Error:(22) No resource identifier found for attribute 'counterEnabled' in package
Error:(22) No resource identifier found for attribute 'counterMaxLength' in package