在layout 文件夹下新建一个xml文件和新建的Activity类 ,当新建xml文件后报错,错误如下
[2011-07-01 00:49:53 - helloWorld] E:\android\dome\res\layout\Second.xml:2: error: Error parsing XML: no element found
[2011-07-01 00:51:03 - helloWorld] res\layout\Second.xml: Invalid file name: must contain only [a-z0-9_.]SecondActivity.java 源码
package com.wyz.hello.activity;import android.app.Activity;
import android.os.Bundle;public class SecondActivity extends Activity { @Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
}}second.xml 源码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/wyz"
    />
    <Button
     android:id="@+id/second"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:text="second"
    />
  
</LinearLayout>