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-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# android.support.constraint\n==========================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The Constraint Layout support library has been superseded by the [AndroidX Constraint\n| Layout library](/reference/androidx/constraintlayout/classes), which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX.\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Barrier](/reference/android/support/constraint/Barrier) | **Added in 1.1** A Barrier references multiple widgets as input, and creates a virtual guideline based on the most extreme widget on the specified side. |\n| [ConstraintLayout](/reference/android/support/constraint/ConstraintLayout) | A `ConstraintLayout` is a [android.view.ViewGroup](/reference/android/view/ViewGroup/package-summary) which allows you to position and size widgets in a flexible way. |\n| [ConstraintLayout.LayoutParams](/reference/android/support/constraint/ConstraintLayout.LayoutParams) | This class contains the different attributes specifying how a view want to be laid out inside a [ConstraintLayout](/reference/android/support/constraint/ConstraintLayout). |\n| [ConstraintProperties](/reference/android/support/constraint/ConstraintProperties) | **Added in 2.0** ConstraintProperties provides an easy to use api to update the layout params of [ConstraintLayout](/reference/android/support/constraint/ConstraintLayout) children |\n| [ConstraintsChangedListener](/reference/android/support/constraint/ConstraintsChangedListener) | **Added in 2.0** Callbacks on state change |\n| [ConstraintSet](/reference/android/support/constraint/ConstraintSet) | This class allows you to define programmatically a set of constraints to be used with [ConstraintLayout](/reference/android/support/constraint/ConstraintLayout). |\n| [Group](/reference/android/support/constraint/Group) | **Added in 1.1** This class controls the visibility of a set of referenced widgets. |\n| [Guideline](/reference/android/support/constraint/Guideline) | Utility class representing a Guideline helper object for [ConstraintLayout](/reference/android/support/constraint/ConstraintLayout). |\n| [Placeholder](/reference/android/support/constraint/Placeholder) | **Added in 1.1** A `Placeholder` provides a virtual object which can position an existing object. |\n\n-\n\n Classes\n -------\n\n - [Barrier](/reference/android/support/constraint/Barrier)\n - [ConstraintLayout](/reference/android/support/constraint/ConstraintLayout)\n - [ConstraintLayout.LayoutParams](/reference/android/support/constraint/ConstraintLayout.LayoutParams)\n - [ConstraintProperties](/reference/android/support/constraint/ConstraintProperties)\n - [ConstraintsChangedListener](/reference/android/support/constraint/ConstraintsChangedListener)\n - [ConstraintSet](/reference/android/support/constraint/ConstraintSet)\n - [Group](/reference/android/support/constraint/Group)\n - [Guideline](/reference/android/support/constraint/Guideline)\n - [Placeholder](/reference/android/support/constraint/Placeholder)"]]