Udostępnij za pośrednictwem


TextView.SetMinLines(Int32) Method

Definition

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.

Applies to

See also