-1

Edittext in set input type multi-line when action Done not working.

I have tried each code that you mentioned in solution, but still I am facing the same issue. How can I resolve it?

How to implement Multiline EditText with ActionDone button (without Enter button) this answer tried in my app, but not working so.

halfer
  • 19,824
  • 17
  • 99
  • 186
Seema
  • 53
  • 1
  • 12

1 Answers1

2

Add

 editText.setImeOptions(EditorInfo.IME_ACTION_DONE);
    editText.setRawInputType(InputType.TYPE_CLASS_TEXT);

in XML:

android:inputType="textMultiLine"