<?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" > <TextView android:id="@+id/myTextView" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </LinearLayout>
解决办法:
原因是在建立文件时直接建立class ,其实应该选择android xml文件……
在创建Android应用过程中,遇到一个布局文件加载时显示premature end of file错误。此问题通常与文件编码或XML语法有关。
834

被折叠的 条评论
为什么被折叠?



