TextinputLayout的错误提示的一些问题
来源:互联网 发布:魏剑峰 英语 知乎 编辑:程序博客网 时间:2024/05/30 12:29
这两天使用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
0 0
- TextinputLayout的错误提示的一些问题
- 一些错误提示的中文翻译
- git的一些错误提示
- python的一些错误提示
- 强大的提示控件TextInputLayout使用以及源码分析
- 强大的提示控件TextInputLayout使用以及源码分析
- SAP Solution Migration一些错误的提示
- TextInputLayout 的简单使用
- TextInputLayout的使用
- TextInputLayout的使用
- TextInputLayout的使用
- TextInputLayout的学习
- TextInputLayout 的使用
- TextInputLayout的使用
- android TextInputLayout的使用
- TextInputLayout 登录的实现
- TextInputLayout&TextInputEditText的使用
- TextInputLayout的简单使用
- 求助,为什么我本地的xcode工程拷贝到别的mac机上运行总是报错链接缺少文件呢?xcode版本是一样的呀
- UICollectionView使用reloadData()方法之后,Cell 里面的控件报错找不到
- 9月至12月季度总结;2017新的一年半年展望
- ScrollView里嵌套ListView,如何禁用ListView的滚动事件,或者触发ListView滚动时调用父元素ScrollView的滚动事件?
- Android 如何调用系统默认的应用程序列表界面,如下图
- TextinputLayout的错误提示的一些问题
- 栈
- 在一个活动中调用碎片里的方法,不知道哪里出错了
- Rect不能被序列化吗?如果不能应该怎么传值?
- 如何设置ListView 中item无法点击?
- 求助:eclipse gradle如何引入多模块项目,引入eclipse后变成了好几个工程!
- 简单json解析
- 指针
- 写在2017的开始