EditText input method action not working when setting imeActionLabel

后端 未结 4 453
青春惊慌失措
青春惊慌失措 2021-01-18 07:13

I have an Edittext with imeoptions asactiongo. and I triggered my event when pressing soft keyboard enter button.

mModelId.setOnE         


        
4条回答
  •  半阙折子戏
    2021-01-18 07:58

    1. Supply a value for EditorInfo.actionId used when an input method is connected to the text view.

      numberEditor.mInputContentType.onEditorActionListener.onEditorAction( this, EditorInfo.IME_NULL, event))

    2. Supply a value for EditorInfo.actionLabel used when an input method is connected to the text view.

    Must be a string value, using '\;' to escape characters such as '\n' or '\uxxxx' for a unicode character.

提交回复
热议问题