【问题标题】:Getting parsing error in xml在xml中获取解析错误
【发布时间】:2013-06-27 03:05:50
【问题描述】:

在我的 xml 文件中,我收到“错误:解析 XML 时出错:格式不正确(无效令牌)”。有什么可以解决的吗?

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:showDividers="none" 
    android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen>

<WebView android:id="@+id/webview1"

    android:layout_width="wrap_content"
    android:layout_height="wrap_content" 
    />

</LinearLayout>

【问题讨论】:

    标签: android xml eclipse


    【解决方案1】:

    您在第一个标签的末尾缺少"

    【讨论】:

      【解决方案2】:
      android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
      

      你错过了“

      【讨论】:

        【解决方案3】:
        <LinearLayout
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical"
            android:showDividers="none"
            android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >
        
            <WebView
                android:id="@+id/webview1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
        </LinearLayout>
        

        【讨论】:

          猜你喜欢
          • 2014-10-19
          • 2013-05-22
          • 2013-02-08
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2012-08-07
          • 2011-09-11
          • 1970-01-01
          相关资源
          最近更新 更多