【问题】
在折腾:
【记录】实现安卓版的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 |
【解决过程】
1.估计是需要后续实现对应的textUri类型的变量,然后就可以消除此警告了。
【总结】
等待后续写完代码,看看是否可以消除此警告。
转载请注明:在路上 » 【未解决】使用ADT进行Android开发期间,编辑XML时提示:The view name (@+id/xxx) suggests this is a URI, but it does not include ‘textUri’ in the inputType