Good day. Please tell me how I can catch the enter key and the transition to a new line in editText multilite.
I tried:
editText.setOnEditorActionListener( new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if( event != null && event.getKeyCode() == KeyEvent.KEYCODE_ENTER){ // обработка нажатия Enter return true; } return false; } }); Does not work.