This text field does not specify an inputType or a hint
来源:互联网 发布:mac口红哪个国家买便宜 编辑:程序博客网 时间:2024/04/28 04:29
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”错误
- 浙商大会观后感!
- Android中拍照Camera的简单实用
- Mac Android Studio常用快捷键总结
- 创建制图表达规则
- SQL查询太长的问题
- This text field does not specify an inputType or a hint
- log4net创建日志
- 【Linux】在centOS上安装MySQL, JDK, Jboss
- 一些有用的网站。
- 平面最近点对
- JAVA try、catch、finally的执行详解
- HBase备份之导入导出
- Gradle的基本使用
- Tomcat学习—Tomcat的server.xml配置文件