Aracılığıyla paylaş


TextView.SetMaxHeight(Int32) Method

Definition

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

[Android.Runtime.Register("setMaxHeight", "(I)V", "GetSetMaxHeight_IHandler")]
public virtual void SetMaxHeight (int maxPixels);
[<Android.Runtime.Register("setMaxHeight", "(I)V", "GetSetMaxHeight_IHandler")>]
abstract member SetMaxHeight : int -> unit
override this.SetMaxHeight : int -> unit

Parameters

maxPixels
Int32

the maximum height of TextView in terms of pixels

Attributes

Remarks

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

This value is used for height calculation if LayoutParams does not force TextView to have an exact height. Setting this value overrides previous maximum height configurations such as #setMaxLines(int) or #setLines(int).

Java documentation for android.widget.TextView.setMaxHeight(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