コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
動作の 1 点におけるすべてのビューの位置と属性を指定します
あります。通常、
<Transition>
要素は、2 つの <ConstraintSet>
要素を指しています。1 つは
終点を定義します。
構文
<ConstraintSet
id="@id/name">
[ deriveConstraintsFrom="id" ]
...
</ConstraintSet>
属性
deriveConstraintsFrom
- (省略可)別の
ConstraintSet
の ID。指定すると、すべての制約が
このセット内のアイテムがこの ConstraintSet
に適用されます(このセットが特に
オーバーライドします
android:id
- この制約セットの一意な ID。
<Transition>
がこの ID を
モーション シーケンスの開始点と終了点を特定します。
必須の子要素
親要素
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# <ConstraintSet>\n\nSpecifies the positions and attributes of all views at one point in a motion\nsequence. Typically, a\n[`\u003cTransition\u003e`](/training/constraint-layout/motionlayout/ref/transition)\nelement points to two `\u003cConstraintSet\u003e` elements, one defining the beginning of\nthe motion sequence and one defining the end.\n\nSyntax\n------\n\n```xml\n\u003cConstraintSet\n id=\"@id/name\"\u003e\n [ deriveConstraintsFrom=\"id\" ]\n ...\n\u003c/ConstraintSet\u003e\n```\n\nAttributes\n----------\n\n`deriveConstraintsFrom`\n: *(optional)* The ID of another `ConstraintSet`. If specified, all constraints\n from that set are applied to this `ConstraintSet`, unless this set specifically\n overrides them.\n\n`android:id`\n: Unique identifier for this constraint set. The `\u003cTransition\u003e` needs this ID to\n identify the start and end points of the motion sequence.\n\nMust contain\n------------\n\n- One or more [`\u003cConstraint\u003e`](/training/constraint-layout/motionlayout/ref/constraint) elements.\n\nContained in\n------------\n\n- [`\u003cMotionScene\u003e`](/training/constraint-layout/motionlayout/ref/motionscene)"]]