setMaxLines

open fun setMaxLines(lines: Int)

Sets the height of the TextView to be at most maxLines tall.

Parameters

lines

the maximum height of TextView in terms of number of lines.