TextView.SetMinHeight(Int32) Method

Definition

Sets the height of the TextView to be at least minPixels tall.

[Android.Runtime.Register("setMinHeight", "(I)V", "GetSetMinHeight_IHandler")]
public virtual void SetMinHeight (int minPixels);
[<Android.Runtime.Register("setMinHeight", "(I)V", "GetSetMinHeight_IHandler")>]
abstract member SetMinHeight : int -> unit
override this.SetMinHeight : int -> unit

Parameters

minPixels
Int32

the minimum height of TextView in terms of pixels

Attributes

Remarks

Sets the height of the TextView to be at least minPixels tall.

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

The value given here is different than #setMinimumHeight(int). Between minHeight and the value set in #setMinimumHeight(int), the greater one is used to decide the final height.

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