I want to allow use to enter just 5 lines, I tried this
The maxLines attribute is to limit height of the EditText. To limit maximum number of lines you have to do it yourself in code.