2014-05-05 44 views
0

问题出现了:当我打开我的XML文件,并改变layout_height attribut。可疑命名空间:应该以http://

问题描述:Suspicious namespace: should start with http://

线的问题*:

<?xml version="1.0" encoding="utf-8"?> 
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:pj="http://schemas.android.com/apk/res/com.example" 
    xmlns:bm="com.example"  <!-- problem line --> 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:layout_gravity="center" 
    android:background="@drawable/basic" 
    android:orientation="vertical" > 

回答

3

清洁您的项目,如果问题仍然存在,重新启动IDE

4

如果您需要自定义空间,使用Android的自动命名空间功能。

在您的例子:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:custom="http://schemas.android.com/apk/res-auto" /> 
相关问题