TextView.SetAutoSizeTextTypeUniformWithPresetSizes(Int32[], Int32) 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("setAutoSizeTextTypeUniformWithPresetSizes", "([II)V", "GetSetAutoSizeTextTypeUniformWithPresetSizes_arrayIIHandler", ApiSince=26)]
public virtual void SetAutoSizeTextTypeUniformWithPresetSizes (int[] presetSizes, int unit);
[<Android.Runtime.Register("setAutoSizeTextTypeUniformWithPresetSizes", "([II)V", "GetSetAutoSizeTextTypeUniformWithPresetSizes_arrayIIHandler", ApiSince=26)>]
abstract member SetAutoSizeTextTypeUniformWithPresetSizes : int[] * int -> unit
override this.SetAutoSizeTextTypeUniformWithPresetSizes : int[] * int -> unit
Parameters
- presetSizes
- Int32[]
an int
array of sizes in pixels
- unit
- Int32
the desired dimension unit for the preset 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 at least one value from the presetSizes
is valid then 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.