Android 使用搜索按钮在编辑文本字段中搜索文本

Android 使用搜索按钮在编辑文本字段中搜索文本,android,Android,我是android编程新手,我使用android studio。我正在尝试创建一个类似google的搜索应用程序,因此当我在编辑文本栏中键入一个单词并单击搜索按钮时,就会执行搜索,搜索结果会显示在google scholar.com或elvesier.com等搜索引擎中。我已经试过了,我已经创建了UI,所以我需要如果在搜索栏中键入搜索,然后单击“发送”按钮,则从google scholars或refseek.com等网站执行搜索并显示 LinearLayout android:o

我是android编程新手,我使用android studio。我正在尝试创建一个类似google的搜索应用程序,因此当我在编辑文本栏中键入一个单词并单击搜索按钮时,就会执行搜索,搜索结果会显示在google scholar.com或elvesier.com等搜索引擎中。我已经试过了,我已经创建了UI,所以我需要如果在搜索栏中键入搜索,然后单击“发送”按钮,则从google scholars或refseek.com等网站执行搜索并显示

LinearLayout
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:weightSum="1"
        android:gravity="center">

        <ImageView
            android:layout_width="170dp"
            android:layout_height="197dp"
            android:id="@+id/imageView"
            android:src="@mipmap/ic_launcher1"
            android:layout_weight="0.12" />
    </LinearLayout>

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:weightSum="1">

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:weightSum="1">

            <EditText
                android:layout_width="291dp"
                android:layout_height="wrap_content"
                android:hint="@string/hint_message"
                android:inputType="text"
                android:imeOptions="actionSend" />

            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:hint="@string/button_message"
                />


        </LinearLayout>
    </LinearLayout>
</LinearLayout>
线性布局
android:orientation=“水平”
android:layout\u width=“匹配父项”
android:layout\u height=“包装内容”
android:weightSum=“1”
android:gravity=“center”>

您没有提到您面临的问题!!!!我已经用我粘贴的代码创建了用户界面,所以我需要如果在搜索栏中键入搜索并单击发送按钮,则从google scholars或refseek.com等网站执行搜索并显示,我该怎么做