This text field does not specify an inputType or a hint
这样写的时候突然发现有黄色的叹号出现,提示:"This text field does not specify an inputType or a hint";
原因是这个编辑框缺少一个属性:hint。
hint属性作用如下:
修改后代码为:
添加后黄色叹号就消失了。
这样写的时候突然发现有黄色的叹号出现,提示:"This text field does not specify an inputType or a hint";
原因是这个编辑框缺少一个属性:hint。
hint属性作用如下:
修改后代码为:
添加后黄色叹号就消失了。
原因:主要是你采用了第一种的android的测试方法担忧没有在AndroidManifest.xml中进行相应的配置。解决办法:在AndroidManifest.xml中的相应位置加上以下代码即可:<instrumentation android:name="android.test.InstrumentationTestRunner" android:ta
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M