Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 属性";需要打开引号;安卓:id“;与元素类型“关联”;编辑文本“;_Android_Xml - Fatal编程技术网

Android 属性";需要打开引号;安卓:id“;与元素类型“关联”;编辑文本“;

Android 属性";需要打开引号;安卓:id“;与元素类型“关联”;编辑文本“;,android,xml,Android,Xml,这是我尝试为android编写的第一个应用程序,我见过更多的人有这个问题,但我似乎找不到答案。它应该有错误类型的“但是没有。另外,所有的文本框都是一样的,但是只有第一个有错误。我甚至尝试过切换它们,但是只有第一个得到了它 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" an

这是我尝试为android编写的第一个应用程序,我见过更多的人有这个问题,但我似乎找不到答案。它应该有错误类型的“但是没有。另外,所有的文本框都是一样的,但是只有第一个有错误。我甚至尝试过切换它们,但是只有第一个得到了它

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >

      <EditText
            **android:id=@+id/editText1** //(the error comes here)
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ems="10"
            android:inputType="numberSigned"
            android:width="1dp">

            <requestFocus />
        </EditText>
         <EditText
            android:id=@+id/editText2
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ems="10"
            android:inputType="numberSigned"
            android:width="1dp">

            <requestFocus />
        </EditText> 
          <EditText
            android:id=@+id/editText3
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ems="10"
            android:inputType="numberSigned"
            android:width="1dp">

            <requestFocus />
        </EditText>
          <EditText
            android:id=@+id/editText4
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ems="10"
            android:inputType="numberSigned"
            android:width="1dp">

            <requestFocus />
        </EditText>

          <Button
              android:id="@+id/button1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Determinar"
              android:onClick="determinar" />

    </LinearLayout>

Thanks for your time!!

谢谢你的时间!!

错误不仅存在,而且贯穿整个布局

您应该将
@+id/yourid
括在引号内

i、 e


如果我像您所说的那样引用它,它会给我:在这一行找到多个注释:-与元素类型“EditText”关联的属性“android:id”需要Open quote。
android:id="@+id/editText3"