Android LinearLayout XML错误
我正努力解决这个问题,但我找不到哪里出了问题 信息:Android LinearLayout XML错误,android,xml,eclipse,Android,Xml,Eclipse,我正努力解决这个问题,但我找不到哪里出了问题 信息: Element type "LinearLayout" must be followed by either attribute specifications, ">" or "/>". 为什么我会得到这个?有什么想法吗 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/a
Element type "LinearLayout" must be followed by either attribute specifications, ">" or "/>".
为什么我会得到这个?有什么想法吗
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:weightSum="100"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
**<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_weight="70"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="#0000FF"
android:padding="20dp"
android:paddingBottom="10dp"
android:gravity="center_horizontal">
</LinearLayout>
</LinearLayout>
您在结尾处漏掉了一个“>”:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:weightSum="100"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
您在结尾处漏掉了一个“>”:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:weightSum="100"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
这是一条非常不言自明的错误消息
您没有关闭LinearLayout
标记。在android:orientation=“vertical”
之后添加一个
,这是一条非常简单的错误消息
您没有关闭
LinearLayout
标记。在android:orientation=“vertical”
之后添加
,您的第一个LinearLayout标记未关闭。在其末尾添加一个
,如下所示:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:weightSum="100"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
^
^
您的第一个LinearLayout标记未关闭。在其末尾添加一个
,如下所示:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:weightSum="100"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
^
^
错误清楚地表明您错过了结束标记。每个布局及其属性都需要有自己的开始和结束标记。加
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_weight="70"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
或
错误清楚地表明您错过了结束标记。每个布局及其属性都需要有自己的开始和结束标记。加
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_weight="70"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
或
他有两个结束标签。他刚刚错过了第一条直线布局的末端角括号。他有两个结束标签。他刚刚错过了第一个线性布局的端角支架。