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.
[[["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,["# androidx.constraintlayout.widget\n================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/constraintlayout/widget/package-summary \"View this page in Java\")\n\nInterfaces\n----------\n\n|---------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|\n| [ConstraintLayout.ValueModifier](/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout.ValueModifier) | This is the interface to a valued modifier. implement this and add it using addValueModifier |\n| [SharedValues.SharedValuesListener](/reference/kotlin/androidx/constraintlayout/widget/SharedValues.SharedValuesListener) | interface for listeners |\n\nClasses\n-------\n\n|-------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Barrier](/reference/kotlin/androidx/constraintlayout/widget/Barrier) | **Added in 1.1** |\n| [ConstraintAttribute](/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute) | Defines non standard Attributes |\n| [ConstraintHelper](/reference/kotlin/androidx/constraintlayout/widget/ConstraintHelper) | **Added in 1.1** |\n| [ConstraintLayout](/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout) | A `ConstraintLayout` is a [android.view.ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html) which allows you to position and size widgets in a flexible way. |\n| [ConstraintLayout.LayoutParams](/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout.LayoutParams) | This class contains the different attributes specifying how a view want to be laid out inside a [ConstraintLayout](/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout). |\n| [ConstraintLayoutStates](/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayoutStates) | |\n| [ConstraintLayoutStatistics](/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayoutStatistics) | This provide metrics of the complexity of the layout that is being solved. |\n| [ConstraintProperties](/reference/kotlin/androidx/constraintlayout/widget/ConstraintProperties) | **Added in 2.0** |\n| [ConstraintSet](/reference/kotlin/androidx/constraintlayout/widget/ConstraintSet) | Defines a set of constraints to be used with [ConstraintLayout](/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout). |\n| [ConstraintSet.Constraint](/reference/kotlin/androidx/constraintlayout/widget/ConstraintSet.Constraint) | |\n| [ConstraintSet.Layout](/reference/kotlin/androidx/constraintlayout/widget/ConstraintSet.Layout) | |\n| [ConstraintSet.Motion](/reference/kotlin/androidx/constraintlayout/widget/ConstraintSet.Motion) | |\n| [ConstraintSet.PropertySet](/reference/kotlin/androidx/constraintlayout/widget/ConstraintSet.PropertySet) | |\n| [ConstraintSet.Transform](/reference/kotlin/androidx/constraintlayout/widget/ConstraintSet.Transform) | |\n| [Constraints](/reference/kotlin/androidx/constraintlayout/widget/Constraints) | This defines the internally defined Constraint set It allows you to have a group of References which point to other views and provide them with constraint attributes |\n| [Constraints.LayoutParams](/reference/kotlin/androidx/constraintlayout/widget/Constraints.LayoutParams) | |\n| [ConstraintsChangedListener](/reference/kotlin/androidx/constraintlayout/widget/ConstraintsChangedListener) | **Added in 2.0** |\n| [Group](/reference/kotlin/androidx/constraintlayout/widget/Group) | Control the visibility and elevation of the referenced views **Added in 1.1** |\n| [Guideline](/reference/kotlin/androidx/constraintlayout/widget/Guideline) | Utility class representing a Guideline helper object for [ConstraintLayout](/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout). |\n| [Placeholder](/reference/kotlin/androidx/constraintlayout/widget/Placeholder) | **Added in 1.1** |\n| [ReactiveGuide](/reference/kotlin/androidx/constraintlayout/widget/ReactiveGuide) | Utility class representing a reactive Guideline helper object for [ConstraintLayout](/reference/kotlin/androidx/constraintlayout/widget/ConstraintLayout). |\n| [SharedValues](/reference/kotlin/androidx/constraintlayout/widget/SharedValues) | Shared values |\n| [StateSet](/reference/kotlin/androidx/constraintlayout/widget/StateSet) | |\n| [VirtualLayout](/reference/kotlin/androidx/constraintlayout/widget/VirtualLayout) | **Added in 2.0** |\n\nEnums\n-----\n\n|---------------------------------------------------------------------------------------------------------------------------|---|\n| [ConstraintAttribute.AttributeType](/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType) | |"]]