您的位置:首页 > 其它

error:Error parsing XML:unbound prefix

2012-03-04 22:22 856 查看
<FrameLayout

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:orientation="vertical" >

今天写这段XML的时候总是提示这个错误。

解决方法是:在FrameLayout后面加一段:xmlns:android="http://schemas.android.com/apk/res/android"

即改后代码如下:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:orientation="vertical" >

然后就不会出现这个错误了。
错误的意思是:无边界的前缀。xmlns字段可以限制这段代码的界限。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: