Android 创建游戏菜单的menu.xml时出错

Android 创建游戏菜单的menu.xml时出错,android,Android,我正在设计游戏菜单,我正在参考 My main.xml文件当前包含: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> &

我正在设计游戏菜单,我正在参考

My main.xml文件当前包含:

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"> 


<ImageView
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:src="@drawable/wallpaper1" />

    <LinearLayout
        android:orientation="vertical"
        android:layout_margin="10dp"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <TextView
            android:text="START GAME"
            android:layout_gravity="right"
            android:id="@+id/start"/>

        <TextView
            android:text="QUICK GAME"
            android:id="@+id/quick"/>

        <TextView
            android:text="SETTINGS"
            android:id="@+id/settings"/>

        <TextView
            android:text="ABOUT"
            android:id="@+id/about"/> 

        <TextView
            android:text="EXIT"
            android:id="@+id/exit"/>

    </LinearLayout>
</RelativeLayout>


然而,在图形布局中似乎有一个错误,我不理解,即:“必须指定布局高度和布局宽度”。

AFAIK,属性android:layout\u width和android:layout\u height对于XML布局文件中声明的每个视图都是必需的


只需为每个TextView元素定义它们。

请使用正确的英语。我的母语是英语,但是你写的东西很可能会让那些不以英语为母语的人感到困惑。是的,当然,对不起。埃文:我在学英语,这不是我的第一语言。再次抱歉!