android TextInputLayout中的hint显示与重影
来源:互联网 发布:电力行业数据 编辑:程序博客网 时间:2024/05/21 22:51
素材设计库版本是 com.android.support:design:25.3.1
1、只需要在EditText标签下写hint
2、不需要在代码中调用函数setHint
3、TextInputLayout和EditText的layout_width皆写为match_parent, 写为wrap_content会导致不显示hint,或者是发生重影。
<android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/discover_title" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="标题" android:inputType="text" /> </android.support.design.widget.TextInputLayout>
阅读全文
0 0
- android TextInputLayout中的hint显示与重影
- 利用TextInputLayout实现hint浮动显示(一)
- 利用TextInputLayout实现hint浮动显示(二)
- Android:Android Design中的TextInputLayout
- Android edittext密码明文显示基于TextInputLayout
- Android TextInputLayout
- android TextInputLayout
- Android 有些机型hint不显示
- android 上下滑动重影
- android fragment重影问题
- Android Fragment重影解决方法
- Android ListView 滚动重影
- TextInputLayout,FloatingActionButton与Snackbar
- TextInputLayout与TextInputEditText详解
- Android Support Design - TextInputLayout
- Android Support Library-TextInputLayout
- android TextInputLayout的使用
- Android Material Design -TextInputLayout
- Js 冒泡事件阻止
- 运行OpenCV编写的函数时提示“应用程序无法正常启动(0xC000001b)”的解决办法
- Myeclipse 10配置反编译器net.sf.jadclipse_3.3.0.jar+jad.exe
- Alamofire post 请求 报错 extra argument in call
- mongodb的安装
- android TextInputLayout中的hint显示与重影
- xampp多端口的实现
- UICollectionView自定义layout如何实现? 比如瀑布流
- centos安装pip
- 24天学会设计模式------策略模式
- tomcat启动报错Could not publish to the server. java.lang.NullPointerException
- 1292: 韩信点兵
- nginx负载均衡、动静分离
- 最短子数组