学习TextInputLayout
来源:互联网 发布:nginx 代理访问外网 编辑:程序博客网 时间:2024/06/07 08:46
这个控件的主要优势是优雅的动画效果,浮动的提示。
用法
- compile ‘com.android.support:design:25.3.1’
- 好吧,可以用了。
细节
此控件需要包含一个子控件 edittext 或者其子控件。谷歌说用TextInputEditText 效果更好。提示字体的颜色还会受主题的影响,才疏学浅,不懂。求大神指教。
关键方法
setErrorEnabled(boolean) 和setError(CharSequence),望文生义,不解释。另外会配合edittext的textchangelistener即TextWatcher
阅读全文
0 0
- 学习TextInputLayout
- TextInputLayout的学习
- TextInputLayout
- TextInputLayout
- TextInputLayout
- TextInputLayout
- TextInputLayout
- TextInputLayout
- TextInputLayout
- TextInputLayout
- 《学习记录》TextInputLayout一般用法
- TextInputLayout的学习和应用
- 从登陆界面学习TextInputLayout
- Android学习笔记——TextInputLayout
- Android学习笔记——TextInputLayout
- 【进阶篇】Android学习笔记——TextInputLayout
- Android学习之Design Support Library中TextInputLayout的使用
- Android TextInputLayout
- JavaScript的原型与原型链
- Java设计模式透析之 —— 策略(Strategy)
- 网页抽取技术和算法与WebCollector
- 如果让你设计一个网络爬虫,你怎么避免陷入无限循环?
- The MRC database dictionary之AOA库 (age of acquisition 习得年龄)
- 学习TextInputLayout
- 2017.07.06【NOIP提高组】模拟赛B组小结
- POJ2407 Relatives
- 告别for循环!
- BestCoder Round #1 解题报告
- JZOJ4307. 【NOIP2015模拟11.3晚】喝喝喝
- The MRC database dictionary之CONC库 ( concreteness)
- 1.原理图GPIO和门电路
- 简单的(第一人称射击)FPS游戏