您的位置:首页 > 其它

关于安卓开发提示:This text field does not specify an inputType or a hint

2015-04-29 01:37 656 查看
<EditText
2         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。

修改后代码为:   

1 <EditText
2         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         />


解决问题!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: