<ट्रांज़िशन>
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी मोशन क्रम की शुरुआत और आखिरी स्थिति के बारे में बताता है, टारगेट
इंटरमीडिएट की स्थितियां और मोशन को ट्रिगर करने वाले उपयोगकर्ता इंटरैक्शन.
वाक्य-विन्यास
<Transition
motion:constraintSetStart="start"
motion:constraintSetEnd="end"
[ motion:duration="integer" ] >
...
</Transition>
विशेषताएं
motion:constraintSetStart
- मोशन क्रम की शुरुआती स्थिति. यह इनमें से किसी का आईडी हो सकता है:
<ConstraintSet>
या लेआउट भी हो सकता है. <ConstraintSet>
तय करने के लिए, इसे सेट करें
को एट्रिब्यूट
"@+id/constraintSetId"
. लेआउट तय करने के लिए,
"@layout/layoutState"
के लिए.
motion:constraintSetEnd
- मोशन क्रम की आखिरी स्थिति. यह इनमें से किसी का आईडी हो सकता है:
<ConstraintSet>
या एक लेआउट. <ConstraintSet>
तय करने के लिए, इसे सेट करें
एट्रिब्यूट की वैल्यू "@+id/constraintSetId"
को दें. यह तय करने के लिए
लेआउट, इसे "@layout/layoutState"
पर सेट करें.
motion:duration
- मिलीसेकंड में मोशन सीक्वेंस की अवधि. अगर इसके बारे में नहीं बताया गया है, तो
<MotionScene>
एलिमेंट के defaultDuration
का इस्तेमाल किया गया है.
इसमें ये चीज़ें शामिल हो सकती हैं
<onClick>
- इससे पता चलता है कि उपयोगकर्ता के टच करने पर मोशन सीक्वेंस ट्रिगर हो जाता है.
<onSwipe>
- इससे पता चलता है कि जब उपयोगकर्ता स्वाइप करता है, तब मोशन सीक्वेंस ट्रिगर होता है.
<KeyFrameSet>
- इसके लिए एक या ज़्यादा मध्यवर्ती स्थितियां या विशेषता सेटिंग तय करती है
के एलिमेंट शामिल हैं.
इसमें शामिल
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# <Transition>\n\nSpecifies the beginning and end state of a motion sequence, the target\nintermediate states, and the user interactions that trigger the motion.\n\nSyntax\n------\n\n```xml\n\u003cTransition\n motion:constraintSetStart=\"start\"\n motion:constraintSetEnd=\"end\"\n [ motion:duration=\"integer\" ] \u003e\n ...\n\u003c/Transition\u003e\n```\n\nAttributes\n----------\n\n`motion:constraintSetStart`\n: Initial state of the motion sequence. This can either be the ID of a\n [`\u003cConstraintSet\u003e`](/training/constraint-layout/motionlayout/ref/constraintset)\n or a layout. To specify a `\u003cConstraintSet\u003e`, set this\n attribute to\n `\"@+id/`\u003cvar translate=\"no\"\u003econstraintSetId\u003c/var\u003e`\"`. To specify a layout, set\n it to `\"@layout/`\u003cvar translate=\"no\"\u003elayoutState\u003c/var\u003e`\"`.\n\n`motion:constraintSetEnd`\n: Final state of the motion sequence. This can either be the ID of a\n `\u003cConstraintSet\u003e`, or a layout. To specify a `\u003cConstraintSet\u003e`, set this\n attribute to `\"@+id/`\u003cvar translate=\"no\"\u003econstraintSetId\u003c/var\u003e`\"`. To specify a\n layout, set it to `\"@layout/`\u003cvar translate=\"no\"\u003elayoutState\u003c/var\u003e`\"`.\n\n`motion:duration`\n: Duration of the motion sequence in milliseconds. If not specified, the\n [`\u003cMotionScene\u003e`](/training/constraint-layout/motionlayout/ref/motionscene)\n element's `defaultDuration` is used.\n\nCan contain\n-----------\n\n[`\u003conClick\u003e`](/training/constraint-layout/motionlayout/ref/onclick)\n: Indicates that the motion sequence is triggered by a user touch.\n\n[`\u003conSwipe\u003e`](/training/constraint-layout/motionlayout/ref/onswipe)\n: Indicates that the motion sequence is triggered by a user swipe.\n\n[`\u003cKeyFrameSet\u003e`](/training/constraint-layout/motionlayout/ref/keyframeset)\n: Specifies one or more intermediate positions or attribute settings for\n elements in the motion sequence.\n\nContained in\n------------\n\n- [`\u003cMotionScene\u003e`](/training/constraint-layout/motionlayout/ref/motionscene)"]]