android set hidden the keyboard on press enter (in a EditText)

前端 未结 5 1169
醉酒成梦
醉酒成梦 2021-01-31 04:20

When my user press Enter on the virtual android \"user validate entry!\" keyboard my keyboard stay visible! (Why?)

Here my Java code...

privat         


        
5条回答
  •  梦谈多话
    2021-01-31 04:50

    just add this line in your edit text.

    android:imeOptions="actionDone"'
    

    you can specify the next edit text id to move to that edit text on click of the keyboard done button.

提交回复
热议问题