android how to make text in an edittext exactly fixed lines

后端 未结 4 1463
天命终不由人
天命终不由人 2020-12-07 04:34

I want to allow use to enter just 5 lines, I tried this



        
4条回答
  •  温柔的废话
    2020-12-07 05:07

    The maxLines attribute is to limit height of the EditText. To limit maximum number of lines you have to do it yourself in code.

提交回复
热议问题