compile'com.android.support:support-v4:25.3.1'
compile'com.android.support:design:25.3.1'
使用之前记得加依赖.
效果图

具体使用如下:

1.里面是一个EditText ;使用view是底部横线,可以自己定义颜色或者图片
2.这里的悬浮的hint字体颜色是可以自己设置的,在style下,应用主题theme中的colorAccent

compile'com.android.support:support-v4:25.3.1'
compile'com.android.support:design:25.3.1'
使用之前记得加依赖.
效果图
具体使用如下:
1.里面是一个EditText ;使用view是底部横线,可以自己定义颜色或者图片
2.这里的悬浮的hint字体颜色是可以自己设置的,在style下,应用主题theme中的colorAccent
本文标题:Android基础之TextInputLayout控件使用
本文链接:https://www.haomeiwen.com/subject/ramebxtx.html
网友评论