TextView.SetAutoSizeTextTypeUniformWithConfiguration Method

Definition

Specify whether this widget should automatically scale the text to try to perfectly fit within the layout bounds.

[Android.Runtime.Register("setAutoSizeTextTypeUniformWithConfiguration", "(IIII)V", "GetSetAutoSizeTextTypeUniformWithConfiguration_IIIIHandler", ApiSince=26)]
public virtual void SetAutoSizeTextTypeUniformWithConfiguration (int autoSizeMinTextSize, int autoSizeMaxTextSize, int autoSizeStepGranularity, int unit);
[<Android.Runtime.Register("setAutoSizeTextTypeUniformWithConfiguration", "(IIII)V", "GetSetAutoSizeTextTypeUniformWithConfiguration_IIIIHandler", ApiSince=26)>]
abstract member SetAutoSizeTextTypeUniformWithConfiguration : int * int * int * int -> unit
override this.SetAutoSizeTextTypeUniformWithConfiguration : int * int * int * int -> unit

Parameters

autoSizeMinTextSize
Int32

the minimum text size available for auto-size

autoSizeMaxTextSize
Int32

the maximum text size available for auto-size

autoSizeStepGranularity
Int32

the auto-size step granularity. It is used in conjunction with the minimum and maximum text size in order to build the set of text sizes the system uses to choose from when auto-sizing

unit
Int32

the desired dimension unit for all sizes above. See TypedValue for the possible dimension units

Attributes

Remarks

Specify whether this widget should automatically scale the text to try to perfectly fit within the layout bounds. If all the configuration params are valid the type of auto-size is set to #AUTO_SIZE_TEXT_TYPE_UNIFORM.

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