码迷,mamicode.com
首页 > 其他好文 > 详细

Unexpected namespace prefix "custom" found for tag

时间:2014-12-22 00:59:57      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:custom="http://schemas.android.com/apk/res-auto"
              xmlns:tools="http://schemas.android.com/tools"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent">
    <fragment
        class="com.demo.artshell.fragmentdemo.ExampleFragment"
        android:id="@+id/example_fragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        custom:label="@string/example_fragment_arguments"
        tools:ignore="MissingPrefix"/>
</LinearLayout>

 添加:

xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingPrefix"

解决这个警告信息!

以上是在AS工具中出现的问题:

另外一篇文章是在eclipse上使用出现的问题:解决方法

Unexpected namespace prefix "custom" found for tag

标签:

原文地址:http://my.oschina.net/artshell/blog/359045

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!