最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【未解决】使用ADT进行Android开发期间,编辑XML时提示:The view name (@+id/xxx) suggests this is a URI, but it does not include ‘textUri’ in the inputType

Android crifan 3560浏览 0评论

【问题】

在折腾:

【记录】实现安卓版的DownloadSongtasteMusic中的添加文本标签和文本输入框

过程中,参考教程:

Building a Simple User Interface – Add a Text Field

写出了代码:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal"
    tools:context=".MainActivity" >

 	
 	<EditText 
 	    android:id="@+id/url_or_id"
 	    android:layout_width="wrap_content"
 	    android:layout_height="wrap_content"
 	    android:hint="@string/songtaste URL or ID"
 	    >
 	    
	</EditText>
</LinearLayout>

结果有警告:

The view name (@+id/url_or_id) suggests this is a URI, but it does not include ‘textUri’ in the inputType

 

The view name  id suggests this is a UR  but it does not include textUri in the inputType

【解决过程】

1.估计是需要后续实现对应的textUri类型的变量,然后就可以消除此警告了。

 

【总结】

等待后续写完代码,看看是否可以消除此警告。

转载请注明:在路上 » 【未解决】使用ADT进行Android开发期间,编辑XML时提示:The view name (@+id/xxx) suggests this is a URI, but it does not include ‘textUri’ in the inputType

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

  1. 我也遇到这样的问题,我以前是android:id="@+id/uri" 会提示以上的警告,后来把uri 改为uri改为其他的(例如rux)就可以了。所以个人认为可能是某些特殊的字符串会出现这样的问题,改成其他的就可以了。
    夏茉槿9年前 (2015-11-02)回复
86 queries in 0.155 seconds, using 22.13MB memory