Stay organized with collections Save and categorize content based on your preferences.

Visibility

@Immutable class Visibility
kotlin.Any
   ↳ androidx.constraintlayout.compose.Visibility

The overall visibility of a widget in a ConstraintLayout.

Summary

Companion properties
Visibility

Like Invisible, but the dimensions of the widget will collapse to (0,0), the constraints will still apply.

Visibility

The widget will not be painted in the ConstraintLayout but its dimensions and constraints will still apply.

Visibility

Indicates that the widget will be painted in the ConstraintLayout.

Companion properties

Gone

@Stable val Gone: Visibility

Like Invisible, but the dimensions of the widget will collapse to (0,0), the constraints will still apply.

Invisible

@Stable val Invisible: Visibility

The widget will not be painted in the ConstraintLayout but its dimensions and constraints will still apply.

Equivalent to forcing the alpha to 0.0.

Visible

@Stable val Visible: Visibility

Indicates that the widget will be painted in the ConstraintLayout. All render-time transforms will apply normally.