2012-11-07 45 views

回答

1

試試這個。

android:imeOptions="actionSearch" 

哪裏寫?

<EditText 
     android:id="@+id/editTextSearch" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:imeOptions="actionSearch"> 
+0

抱歉,但我應該在哪裏寫代碼 –

+0

@manoj它添加XML編輯文本屬性格式。 android:imeOptions =「actionSearch」 –

+0

thanx,它工作正常,我可以更改「下一步」按鈕的文本爲「搜索」按鈕。 –

0
<EditText 
     android:id="@+id/editText1" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:ems="10" 
     android:imeOptions="actionSearch" //ADD THIS LINE TO YOUR REQUIRED EDITTEXT 
     android:inputType="textPassword" > 

     <requestFocus /> 
    </EditText> 
相關問題