no lable views point to this text field with an android:lablFor=”@+id/@+id
来源:互联网 发布:康亿点验钞机升级软件 编辑:程序博客网 时间:2024/05/16 02:04
是一个警告,xml代码是:
<EditText
android:id="@+id/bookname"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text"
>
</EditText>
改成
<EditText
android:id="@+id/bookname"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:labelFor="@+id/bookname"
>
</EditText>
就好了。
新版本SDK要求填写属性lableFor,类似于填写一个ID来绑定这个控件,第一句已经添加了一个id,直接用那个就行了
0 0
- no lable views point to this text field with an android:lablFor=”@+id/@+id
- no lable views point to this text field with an android:lablFor=”@+id/@+id
- No label views point to this text field with an android:labelFor="@+id/@+id/***" attribute
- 在xml中定义EditText出现“EditText No label views point to this text field with an android:labelFor”
- Must specify unique android:id, android:tag, or have a parent with an id for XXX
- Android 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
- android学习记录(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 ora hint
- “This text field does not specify an inputType ora hint”
- Unable to inject views for BcFragment{8d4c0 #1 id=0x7f0d00a1}
- 用Eclipse编译android程序时,出现警告This text field does not specify an inputType or a hint
- Android学习系列第一弹之《warning:This text field does not specify an inputType or a hint》
- [doc=null] missing required field: id
- Linking SAP User-id to Personnel no
- hdoj 4196 Remoteland 【阶乘因式分解中质因子个数 + 费马小定理】
- java文件切割工具
- 软件重构
- GVim for windows 简单使用教程
- 重载和多态之间的关系?!(C++初学者)
- no lable views point to this text field with an android:lablFor=”@+id/@+id
- java注解
- 将 Sublime 3 打造成 Python/Django IDE开发利器
- apache-archiva-2.2.0 密码过期问题的解决
- Git的使用和相关配置
- SQL SERVER 2008 配置管理器出现“远程过程调用失败”【0x800706be】解决办法
- YII2中Codeception的安装
- cf 580 c(邻接表+dfs)
- spring任务调度器quartz