Мне было интересно, можно ли заменить увеличительное стекло на кнопке «Поиск» на текст «Поиск».Мы хотим сохранить для параметра imeOptions значение android: imeOptions = "actionSearch", поскольку мы реагируем на определенное событие.
Вот что у меня есть:
<EditText
android:id="@+id/txtSearch"
android:textSize="14px"
android:textColor="@color/main_text_black"
android:layout_width="189px"
android:layout_height="fill_parent"
android:imeOptions="actionSearch"
android:gravity="center_vertical"
android:singleLine="true"
android:background="@null"
android:layout_alignParentLeft="true"
android:layout_marginLeft="24px"/>
![enter image description here](https://i.stack.imgur.com/Ky2UO.png)
Пробовал это:
<EditText
android:id="@+id/txtSearch"
android:textSize="18dp"
android:textColor="@color/main_text_black"
android:layout_width="247dp"
android:layout_height="fill_parent"
android:imeOptions="actionSearch"
android:imeActionLabel="Search"
android:gravity="center_vertical"
android:singleLine="true"
android:background="@null"
android:layout_alignParentLeft="true"
android:layout_marginLeft="38dp"/>
![enter image description here](https://i.stack.imgur.com/pnOaL.png)
Это работает только в ландшафтном режиме, который наше приложение не поддерживает, и слово Поиск отображается не в том месте.