<ConstraintSet>
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir hareketin bir noktasındaki tüm görünümlerin konumlarını ve özelliklerini belirtir
tıklayın. Genellikle
<Transition>
öğesi, biri ilkini tanımlayan iki <ConstraintSet>
öğesine işaret ediyor
hareket sırasını, diğeri ise sonu tanımlar.
Sözdizimi
<ConstraintSet
id="@id/name">
[ deriveConstraintsFrom="id" ]
...
</ConstraintSet>
Özellikler
deriveConstraintsFrom
- (isteğe bağlı) Başka bir
ConstraintSet
'nin kimliği. Belirtilirse tüm kısıtlamalar
bu kümeye uygulanır. ConstraintSet
(özellikle ayarlanmadıkça)
tarafından geçersiz kılınır.
android:id
- Bu kısıtlama grubu için benzersiz tanımlayıcıdır.
<Transition>
için bu kimliğin şu işlemler yapması gerekir:
hareket dizisinin başlangıç ve bitiş noktalarını belirler.
Şunu içermelidir:
İçinde bulunduğu yer:
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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)"]]