Search code examples
androidandroid-edittextword-wrap

Android EditText with multiple Lines automatic line break


is it possible to have an EditText with multiple Lines which automatically makes a Line break after every 20th Character the user is typing in?


Solution

  • You can implement TextWatcher interface and implement method afterTextChanged. The method will be invoked after text changed, so you can add the line breaks in it by yourself.