Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.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-找不到以下类:-SubmitText(修复生成路径,编辑XML)_Android_Xml - Fatal编程技术网

Android-找不到以下类:-SubmitText(修复生成路径,编辑XML)

Android-找不到以下类:-SubmitText(修复生成路径,编辑XML),android,xml,Android,Xml,尝试查看应用程序的图形布局视图时,出现以下错误: The following classes could not be found: - SubmitText (Fix Build Path, Edit XML) 这是我的Activity_主xml文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/to

尝试查看应用程序的图形布局视图时,出现以下错误:

The following classes could not be found:
- SubmitText (Fix Build Path, Edit XML)
这是我的Activity_主xml文件

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <EditText android:id="@+id/edit_message"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:hint="@string/edit_message"
         />

    <SubmitText android:id="@+id/Submit_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:hint="@string/Submit_text"
        />

<Button
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/button_send"

    />

<Button
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/button_exit"
    />
        </LinearLayout>

有人知道是什么原因导致此错误消息被标记吗?
感谢您抽出时间。

Android中没有
SubmitText
组件。除非您使用的外部库应该包含
SubmitText
,否则为了避免将来出现问题,您应该将其更改为常见的
EditText

<EditText android:id="@+id/Submit_text"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:hint="@string/Submit_text" />


SubmitText
是一个自定义小部件吗?谢谢,我以为我可以在其中放置任何字段,我真傻。谢谢你发现了!