Android EditText with multiple Lines automatic line break

android, android-edittext, word-wrap

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.

Problem

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?

Original source

Related problems