Class

Visibility

Value of the visibility field for a node in the composition tree.

Source set: Android
public enum class Visibility {
    /** The node is visible (the default). */
    Visible,
    /** The node is invisible, but still uses the space in the layout. */
    Invisible,
    /** The node is invisible, and doesn't use any space, as if removed. */
    Gone,
}

Value of the visibility field for a node in the composition tree.

Members

Visible

Source set: Android
Visible

The node is visible (the default).

Invisible

Source set: Android
Invisible

The node is invisible, but still uses the space in the layout.

Gone

Source set: Android
Gone

The node is invisible, and doesn't use any space, as if removed.

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: