Interface

TextFieldLabelScope

Scope for the label of a TextField or OutlinedTextField.

Source set: Common
public interface TextFieldLabelScope

Scope for the label of a TextField or OutlinedTextField.

Properties

labelMinimizedProgress

Source set: Common
@get:FloatRange(from = 0.0, to = 1.0) public val labelMinimizedProgress: Float

The animation progress of a label between its expanded and minimized sizes, where 0 represents an expanded label and 1 represents a minimized label.

Label animation is handled by the framework when using a component that reads from LocalTextStyle, such as the default Text. This labelMinimizedProgress value can be used to coordinate other animations in conjunction with the default animation.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: