<ConstraintSet>
Stay organized with collections
Save and categorize content based on your preferences.
Specifies the positions and attributes of all views at one point in a motion
sequence. Typically, a
<Transition>
element points to two <ConstraintSet>
elements, one defining the beginning of
the motion sequence and one defining the end.
Syntax
<ConstraintSet
id="@id/name">
[ deriveConstraintsFrom="id" ]
...
</ConstraintSet>
Attributes
deriveConstraintsFrom
- (optional) The ID of another
ConstraintSet
. If specified, all constraints
from that set are applied to this ConstraintSet
, unless this set specifically
overrides them.
android:id
- Unique identifier for this constraint set. The
<Transition>
needs this ID to
identify the start and end points of the motion sequence.
Must contain
Contained in
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 2023-03-27 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 2023-03-27 UTC."],[],[]]