TextView.SetMinLines(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the height of the TextView to be at least minLines
tall.
[Android.Runtime.Register("setMinLines", "(I)V", "GetSetMinLines_IHandler")]
public virtual void SetMinLines (int minLines);
[<Android.Runtime.Register("setMinLines", "(I)V", "GetSetMinLines_IHandler")>]
abstract member SetMinLines : int -> unit
override this.SetMinLines : int -> unit
Parameters
- minLines
- Int32
the minimum height of TextView in terms of number of lines
- Attributes
Remarks
Sets the height of the TextView to be at least minLines
tall.
This value is used for height calculation if LayoutParams does not force TextView to have an exact height. Setting this value overrides other previous minimum height configurations such as #setMinHeight(int)
or #setHeight(int)
. #setSingleLine()
will set this value to 1.
Java documentation for android.widget.TextView.setMinLines(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.