小编use*_*480的帖子

在android eclipse中为标记TextView找到了意外的命名空间前缀"android"

<RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin)"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingRight="@dimen/activity_horizomtal_margin"
tools:context=".AnaEkranActivity" >


<TextView android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:text="New Screen" />


</RelativeLayout>    
Run Code Online (Sandbox Code Playgroud)

我有2个错误.

Suspicious namespace: should start with http://
Run Code Online (Sandbox Code Playgroud)

在第一行.

其他是:

Unexpected namespace prefix "android" found for tag TextView
Run Code Online (Sandbox Code Playgroud)

android:text行.

是什么原因?它的格式很好

xml android android-layout

1
推荐指数
1
解决办法
1181
查看次数

标签 统计

android ×1

android-layout ×1

xml ×1