术语“没有标签视图指向此文本字段”的含义是:警告信息 [英] Meaning of "No label views point to this text field" warning message

查看:80
本文介绍了术语“没有标签视图指向此文本字段”的含义是:警告信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此警告的含义是什么?

What is the meaning of this warning?


没有标签视图指向带有android:labelFor = @
id / @ id / editText1属性的文本字段

No label views point to this text field with an android:labelFor="@ id/@ id/editText1" attribute

请注意,双id( @ id / @ id )是错误消息文本中出现问题 ,并且不能反映XML内容(这是正确的语法)。

Note that the double id (@id/@id) is a problem with the error message text and does not reflect the XML content (which is the correct syntax).

推荐答案

labelFor 是辅助功能选项的属性。您可以将其分配给标签,以便用户在表单上单击textedit字段时,Android可以知道向用户读取的内容(TalkBack)。

The labelFor is an attribute for accessibility options. You assign this to a label so that if, on a form , user clicks a textedit field , android can know what to read (TalkBack) to user.

分配给它似乎无效。为什么在ID中有两个 @id ?使用这样的ID: @ id / editText1

The id you assigned to it doesn't seem to be a valid one. why there are two @id in the id? Use ids like this: @id/editText1

这篇关于术语“没有标签视图指向此文本字段”的含义是:警告信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆