Stay organized with collections
Save and categorize content based on your preferences.
abstract class LayoutReference
Represents a ConstraintLayout
item that requires a unique identifier. Typically a layout or a helper such as barriers, guidelines or chains.
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# LayoutReference\n===============\n\nArtifact: [androidx.constraintlayout:constraintlayout-compose](/jetpack/androidx/releases/constraintlayout) \n[View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/ConstraintLayoutBaseScope.kt+class:androidx.constraintlayout.compose.LayoutReference) \nAdded in [1.1.1](/jetpack/androidx/releases/constraintlayout#1.1.1)\n\n\n```\nabstract class LayoutReference\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ConstrainedLayoutReference](/reference/kotlin/androidx/constraintlayout/compose/ConstrainedLayoutReference), [HorizontalChainReference](/reference/kotlin/androidx/constraintlayout/compose/HorizontalChainReference), [VerticalChainReference](/reference/kotlin/androidx/constraintlayout/compose/VerticalChainReference) \n\n|--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ConstrainedLayoutReference](/reference/kotlin/androidx/constraintlayout/compose/ConstrainedLayoutReference) | Represents a layout within a [ConstraintLayout](/reference/kotlin/androidx/constraintlayout/compose/package-summary#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)). |\n| [HorizontalChainReference](/reference/kotlin/androidx/constraintlayout/compose/HorizontalChainReference) | Represents a horizontal chain within a [ConstraintLayout](/reference/kotlin/androidx/constraintlayout/compose/package-summary#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)). |\n| [VerticalChainReference](/reference/kotlin/androidx/constraintlayout/compose/VerticalChainReference) | Represents a vertical chain within a [ConstraintLayout](/reference/kotlin/androidx/constraintlayout/compose/package-summary#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)). |\n\n*** ** * ** ***\n\nRepresents a [ConstraintLayout](/reference/kotlin/androidx/constraintlayout/compose/package-summary#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)) item that requires a unique identifier. Typically a layout or a helper such as barriers, guidelines or chains.\n\nSummary\n-------\n\n| ### Public functions |\n|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](/reference/kotlin/androidx/constraintlayout/compose/LayoutReference#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |\n| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [hashCode](/reference/kotlin/androidx/constraintlayout/compose/LayoutReference#hashCode())`()` |\n\nPublic functions\n----------------\n\n### equals\n\n```\nopen operator fun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\n```\nopen fun hashCode(): Int\n```"]]