This text field does not specify an inputType or a hint
来源:互联网 发布:腾讯视频网络设置在哪 编辑:程序博客网 时间:2024/06/06 03:21
This text field does not specify an inputType or a hint
1 <EditText2 android:layout_width="fill_parent"3 android:layout_height="wrap_content"4 android:minLines="3"5 android:id="@+id/message"6 />
这样写的时候突然发现有黄色的叹号出现,提示:"This text field does not specify an inputType or a hint";
原因是这个编辑框缺少一个属性:hint。
hint属性作用如下:
修改后代码为:
1 <EditText2 android:layout_width="fill_parent"3 android:layout_height="wrap_content"4 android:minLines="3"5 android:hint="@null"6 android:id="@+id/message"7 />
添加后黄色叹号就消失了。
阅读全文
1 0
- This text field does not specify an inputType or a hint
- (EditText)This text field does not specify an inputType or a hint
- Android This text field does not specify an inputType or a hint 解决
- 关于Android的This text field does not specify an inputType or a hint 问题
- This text field does not specify an inputType or a hint
- android 在布局文件中报错:This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- 黄色警告: This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- This text field does not specify an inputType or a hint
- android学习记录(This text field does not specify an inputType or a hint)
- This text field does not specify an inputType or a hint
- Android:This text field does not specify an inputType or a hint
- “This text field does not specify an inputType or a hint”错误
- 【干货】玩运营不可不知的经典“事件营销”案例
- Spark Client和Cluster两种运行模式的工作流程
- openstack中:Failed to establish a new connection: [Errno 110] Connection timed out'
- LeetCode 13.Roman to Integer
- nodepad++快捷键
- This text field does not specify an inputType or a hint
- 堆排序
- Python标准模块——pickle
- 2017 bctf boj writeup
- Mysql 索引的理解,总结与优化注意事项
- 连接数据库失败:Access denied for user 'root'@'(ip地址)' (using password: YES)
- maven class not found no qualifying bean of type
- JQuery的获得属性
- Android 中的dm-verity原理分析