maxLines property

int maxLines
final

The maximum number of lines for the text to span, wrapping if necessary.

If this is 1 (the default), the text will not wrap, but will scroll horizontally instead.

If this is null, there is no limit to the number of lines. If it is not null, the value must be greater than zero.

Implementation

final int maxLines