title: How to implement Multiline EditText with ActionDone button (without Enter button)
body: <p>I have EditText which is used for entering contents on messages (emails, sms). I want message to be immediately posted on ActionDone button click. I use following code for this:</p>
  
  <pre><code>message.setOnEditorActionListener((textView, i, keyEvent) -&gt; {
              switch (i) {
                  case EditorInfo.IME_ACTION_DONE:
                      if (messageCanBePosted()) {
                          SoftKeyboard.hide(message);
                          postMessage();
                          return true;
                      } else {
                          return false;
                      }
                  default:
                      return false;
              }
          }); 
  </code></pre>
  
  <p>But also I want this message field to be multiline, like in any other messenger apps. I can achieve it with this line:</p>
  
  <pre><code>android:inputType="textMultiLine"
  </code></pre>
  
  <p>The problem is that after adding this line ActionDone button starts acting like Enter button. So my callback for catching <code>EditorInfo.IME_ACTION_DONE</code> is never called. So each time user press that button cursor moves to new line instead of posting message. </p>
  
  <p>How can I keep both multiline behavior of EditText (ability to show text on multiple lines) and ActionDone button?</p>