gpt4 book ai didi

android - Android 应用程序开发中的 EditText 警告

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:32:18 25 4
gpt4 key购买 nike

在 xml 文件中声明 EditText 时,我收到如下警告

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

EditText代码为

<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/start"
android:hint="@string/edit_message" />

最佳答案

我也不知道这条错误消息试图通知我做什么!

谢天谢地,我找到了解释:http://thecodeiscompiling.blogspot.com/2013/12/android-labelfor-waning-fix.html

the warning is telling you the EditText field does not have a TextView that can be read to a user when accessibility is turned on, since you haven't specified one with the android:labelFor attribute.

关于android - Android 应用程序开发中的 EditText 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19231410/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com