本文介紹了如何禁用“下一步"EditText 軟件鍵盤上的按鈕(替換為“完成"按鈕)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我的 Android 應用程序中有一堆 EditText,每個都將 InputMethod 設置為 numberSigned.我的目標設備沒有硬件鍵盤,而是使用軟件鍵盤輸入數字.Android 將輸入框右側的標準完成"按鈕替換為下一步"按鈕.如何改用完成"?
I have a bunch of EditTexts in my Android application, each with InputMethod set to numberSigned. My target device does not have a hardware keyboard and uses the software keyboard for numeric entry. Android replaces the standard "Done" button to the right of the entry box with a "Next" button. How can I use "Done" instead?
推薦答案
嘗試將 android:imeOptions="actionDone"
添加到您的 EditText
.
Try adding android:imeOptions="actionDone"
to your EditText
.
參考
這篇關于如何禁用“下一步"EditText 軟件鍵盤上的按鈕(替換為“完成"按鈕)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!