title: How to restrict the user to enter more than 5 lines in edit text?
body: <p>I am developing an android application with some forms. Here in my input fields description section should not allow the user to enter more than 5 lines.I am not getting how to prevent the user to enter more than 5 lines in edit text field. I already tried <code>android:maxLines=5</code> and <code>android:lines=5</code>. But those are not giving my functionality. could any one please suggest a way to stop entering more than 5 lines in edit text.</p>
  
  <p>Thanks in advance</p>