TextView.SetAutoSizeTextTypeUniformWithConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.
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.