AutoSizeableTextView

Interface which allows a android.widget.TextView to receive background auto-sizing calls from TextViewCompat when running on API v26 devices or lower.

When used on a View annotated with androidx.resourceinspection.annotation.AppCompatShadowedAttributes, this interface implies that AppCompat shadows the platform's auto-size attributes. See androidx.resourceinspection.processor for more details and a full mapping of attributes.

Functions

Link copied to clipboard
abstract fun getAutoSizeMaxTextSize(): Int
Link copied to clipboard
abstract fun getAutoSizeMinTextSize(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getAutoSizeTextType(): Int
Returns the type of auto-size set for this widget.
abstract fun setAutoSizeTextTypeUniformWithConfiguration(autoSizeMinTextSize: Int, autoSizeMaxTextSize: Int, autoSizeStepGranularity: Int, unit: Int)
Specify whether this widget should automatically scale the text to try to perfectly fit within the layout bounds.
abstract fun setAutoSizeTextTypeUniformWithPresetSizes(@NonNull presetSizes: Array<Int>, unit: Int)
Specify whether this widget should automatically scale the text to try to perfectly fit within the layout bounds.
Link copied to clipboard
abstract fun setAutoSizeTextTypeWithDefaults(autoSizeTextType: Int)
Specify whether this widget should automatically scale the text to try to perfectly fit within the layout bounds by using the default auto-size configuration.