EditText automatically go to a new line

android, android-edittext

Solution

ADD this to your EditText xml code

android:inputType="textMultiLine"

This will automatically moves your text to next line while entering data.

Problem

I want to make the `EditText` with max lines of 2 and max length of 20. If the `EditText` length is more than 10, it should automatically go to a new line so the user don't need to press Enter. Can someone help me with this requirement?

Original source

Related problems