Skip to content

//deferred-resources-view-extensions/com.backbase.deferredresources.viewx/setAutoSizeTextTypeUniformWithConfiguration

setAutoSizeTextTypeUniformWithConfiguration

[androidJvm]
Content
fun TextView.setAutoSizeTextTypeUniformWithConfiguration(deferredMinTextSize: DeferredDimension, deferredMaxTextSize: DeferredDimension, deferredStepGranularity: DeferredDimension)
More info

Specify whether this widget should automatically scale the text to try to perfectly fit within the layout bounds. If the resolved deferredMinTextSize, deferredMaxTextSize, and deferredStepGranularity are valid, the type of auto-size is set to TextViewCompat.AUTO_SIZE_TEXT_TYPE_UNIFORM.

Throws

java.lang.IllegalArgumentException

if any of the configuration params are invalid.