<ข้อจำกัด≫
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ระบุตำแหน่งและแอตทริบิวต์ขององค์ประกอบหนึ่งของลำดับการเคลื่อนไหว
วากยสัมพันธ์
<Constraint
android:id="@id/view_id"
attributes
/>
มีใน
แอตทริบิวต์
องค์ประกอบ <Constraint>
รองรับชุดมาตรฐาน ConstraintLayout
สำหรับเอกสารฉบับเต็ม โปรดดูที่นักพัฒนา ConstraintLayout
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา 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,["# <Constraint>\n\nSpecifies the location and attributes of one element of a motion sequence.\n\nSyntax\n------\n\n```xml\n\u003cConstraint\n android:id=\"@id/view_id\"\n attributes\n/\u003e\n```\n\nContained in\n------------\n\n- [`\u003cConstraintSet\u003e`](/training/constraint-layout/motionlayout/ref/constraintset)\n\nAttributes\n----------\n\nThe `\u003cConstraint\u003e` element supports the standard set of `ConstraintLayout`\nattributes. For full documentation, see the [`ConstraintLayout` developer\nguide](/reference/android/support/constraint/ConstraintLayout#developer-guide)."]]