Class

RemoteVisibility

Visibility states for a remote component.

Source set: JvmAndAndroid
public enum class RemoteVisibility(internal val value: Int) {
    /** The component is visible and takes up space in the layout. */
    Visible(Component.Visibility.VISIBLE),

    /** The component is invisible, but still takes up space in the layout. */
    Invisible(Component.Visibility.INVISIBLE),

    /** The component is hidden and does not take up any space in the layout. */
    Gone(Component.Visibility.GONE),
}

Visibility states for a remote component.

Members

Visible

Source set: JvmAndAndroid
Visible(Component.Visibility.VISIBLE)

The component is visible and takes up space in the layout.

Invisible

Source set: JvmAndAndroid
Invisible(Component.Visibility.INVISIBLE)

The component is invisible, but still takes up space in the layout.

Gone

Source set: JvmAndAndroid
Gone(Component.Visibility.GONE)

The component is hidden and does not take up any space in the layout.

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: