Share via


TextView.SetMinEms(Int32) Method

Definition

Sets the width of the TextView to be at least minEms wide.

[Android.Runtime.Register("setMinEms", "(I)V", "GetSetMinEms_IHandler")]
public virtual void SetMinEms (int minEms);
[<Android.Runtime.Register("setMinEms", "(I)V", "GetSetMinEms_IHandler")>]
abstract member SetMinEms : int -> unit
override this.SetMinEms : int -> unit

Parameters

minEms
Int32

the minimum width of TextView in terms of ems

Attributes

Remarks

Sets the width of the TextView to be at least minEms wide.

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

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