검색 버튼의 돋보기를 텍스트 "검색"으로 변경할 수 있는지 궁금합니다. 우리는 특정 이벤트에 응답하기 때문에 imeOptions 설정을 android : imeOptions = "actionSearch"로 유지하려고합니다.android - imeOptions에는 돋보기 대신 "검색"이라고 말한 검색 버튼이 있습니다.
<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"/>
이를 시도 : 여기
내가 가진 무엇<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"/>
우리의 응용 프로그램에서 지원하지 않는 가로 모드에서이 유일한 작품 단어 검색이 잘못된 것으로 나타난다. 장소.
가능한 중복 : http://stackoverflow.com/questions/7156427/android-keyboard-go-button-to-search/7156494#7156494는 – NSjonas
또한 가로 모드에서 Portret입니다보기에서 작동하지 않았다 그것은 여전히 돋보기가 있으며 검색 단어는 상단에서 무시되지만 내가 필요한 곳에서는 그렇지 않습니다. – dropsOfJupiter
android : imeActionLabel = xml의 지정되지 않은 속성을 사용하는 "Search"를 변경 했습니까? 아니면 java를 사용하여 런타임에 수행 했습니까? – NSjonas