Stay organized with collections
Save and categorize content based on your preferences.
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.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# Constraint.HAnchor\n==================\n\nArtifact: [androidx.constraintlayout:constraintlayout-core](/jetpack/androidx/releases/constraintlayout) \n[View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/core/dsl/Constraint.java+class:androidx.constraintlayout.core.dsl.Constraint.HAnchor) \nAdded in [1.1.1](/jetpack/androidx/releases/constraintlayout#1.1.1)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/constraintlayout/core/dsl/Constraint.HAnchor \"View this page in Java\")\n\n\n```\ninner class Constraint.HAnchor : Constraint.Anchor\n```\n\n\u003cbr /\u003e\n\n|---|---|----------------------------------------------------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||\n| ↳ | [androidx.constraintlayout.core.dsl.Constraint.Anchor](/reference/kotlin/androidx/constraintlayout/core/dsl/Constraint.Anchor) ||\n| | ↳ | [androidx.constraintlayout.core.dsl.Constraint.HAnchor](/reference/kotlin/androidx/constraintlayout/core/dsl/Constraint.HAnchor) |\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Inherited functions |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| From [androidx.constraintlayout.core.dsl.Constraint.Anchor](/reference/kotlin/androidx/constraintlayout/core/dsl/Constraint.Anchor) |--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [build](/reference/kotlin/androidx/constraintlayout/core/dsl/Constraint.Anchor#build(java.lang.StringBuilder))`(builder: `[StringBuilder](https://developer.android.com/reference/java/lang/StringBuilder.html)`!)` | | [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [getId](/reference/kotlin/androidx/constraintlayout/core/dsl/Constraint.Anchor#getId())`()` | | [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [toString](/reference/kotlin/androidx/constraintlayout/core/dsl/Constraint.Anchor#toString())`()` | |"]]