This text field does not specify an `inputType` or a `hint`
来源:互联网 发布:淘宝店铺轮播图片尺寸 编辑:程序博客网 时间:2024/06/06 16:37
安卓界面加入EditText后出现的警告信息
警告位置:
意思是说:EditText控件需要指定一种输入类型用于帮助输入法显示合适的输入键盘,或者当EditText为空时显示的提示信息方便用户输入
而EditText对应的输入类型有:
//文本类型
android:inputType="none"
android:inputType="text"
android:inputType="textCapCharacters"
android:inputType="textCapWords"
android:inputType="textCapSentences"
android:inputType="textAutoCorrect"
android:inputType="textAutoComplete"
android:inputType="textMultiLine"
android:inputType="textImeMultiLine"
android:inputType="textNoSuggestions"
android:inputType="textUri"
android:inputType="textEmailAddress"
android:inputType="textEmailSubject"
android:inputType="textShortMessage"
android:inputType="textLongMessage"
android:inputType="textPersonName"
android:inputType="textPostalAddress"
android:inputType="textPassword"
android:inputType="textVisiblePassword"
android:inputType="textWebEditText"
android:inputType="textFilter"
android:inputType="textPhonetic"
//数值类型
android:inputType="number"
android:inputType="numberSigned"
android:inputType="numberDecimal"
android:inputType="phone"//拨号键盘
android:inputType="datetime"
android:inputType="date"//日期键盘
android:inputType="time"//时间键盘
EditText对应的提示信息为软件要提示用户该输入什么样的内容,根据软件需要,开发人员自己编写,比如:android:hint="请输入用户账号"
- 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”错误
- 思考软件,创新设计摘要
- QT环境搭建: QT-4.8.6在windows下的使用 -(1)QT-4.8.6安装配置使用
- Nginx配置文件(nginx.conf)配置详解
- 新人小白上路,请大神指点
- 单链表面试题~带环链表的入口点
- This text field does not specify an `inputType` or a `hint`
- VLAN间路由
- Python学习笔记总结(二)函数和模块
- C#中的常用基础语法知识
- 迷茫<第一篇:初到北京>
- mac下使用ll等指令
- No.1 YUV420p 图像裁剪
- java基础学习(六)组合与继承
- mysql 性能索引篇