<কীফ্রেমসেট>
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
গতি ক্রম চলাকালীন ভিউগুলির জন্য অবস্থান এবং বৈশিষ্ট্যগুলি নির্দিষ্ট করে৷ ডিফল্টরূপে, গতি প্রাথমিক অবস্থা থেকে শেষ অবস্থায় চলে যায়। <KeyFrameSet>
ব্যবহার করে, আপনি আরও জটিল গতি তৈরি করতে পারেন।
<KeyFrameSet>
-এ <KeyPosition>
বা <KeyAttribute>
নোড রয়েছে। এই নোডগুলি গতির একটি নির্দিষ্ট বিন্দুতে একটি লক্ষ্য দৃশ্যের অবস্থান বা বৈশিষ্ট্যগুলি নির্দিষ্ট করে। MotionLayout
মসৃণভাবে দৃশ্যটিকে প্রারম্ভিক বিন্দু থেকে প্রতিটি মধ্যবর্তী বিন্দুতে এবং তারপর চূড়ান্ত গন্তব্যে অ্যানিমেট করে।
ধরুন গতি ক্রমটির প্রাথমিক অবস্থার দৃশ্যের নীচের-বাম কোণে একটি অস্বচ্ছ বল রয়েছে এবং চূড়ান্ত অবস্থাটি উপরের-ডান কোণায় বলটিকে স্বচ্ছ করে তোলে। ডিফল্টরূপে, MotionLayout
বলটিকে একটি তির্যক রেখায় মসৃণভাবে স্থানান্তরিত করে, ধীরে ধীরে স্বচ্ছ হয়ে ওঠে যতক্ষণ না এটি তার গন্তব্যে পৌঁছে অদৃশ্য হয়ে যায়। <KeyFrameSet>
ব্যবহার করে, আপনি এই আচরণ পরিবর্তন করতে পারেন। উদাহরণস্বরূপ, আপনি সম্পূর্ণরূপে অস্বচ্ছ থাকা অবস্থায় বলটিকে উপরের-বাম কোণে উল্লম্বভাবে সরাতে পারেন, তারপর বিবর্ণ হওয়ার সময় উপরের-ডান কোণে অনুভূমিকভাবে সরান। আপনি একটি <KeyFrameSet>
তৈরি করে এবং এর ভিতরে একটি <KeyPosition>
এবং <KeyAttribute>
যোগ করে এটি করতে পারেন। <KeyPosition>
বলের মধ্যবর্তী অবস্থান নির্দিষ্ট করে, এবং <KeyAttribute>
নির্দিষ্ট করে যে গতির মধ্যবিন্দুতে বলটি অস্বচ্ছ থাকে।
সিনট্যাক্স
<KeyFrameSet>
[ <KeyPosition/>... ]
[ <KeyAttribute/>...]
</KeyFrameSet>
এর মধ্যে রয়েছে
<Transition>
ধারণ করে
-
<KeyPosition>
- গতি ক্রম চলাকালীন একটি নির্দিষ্ট মুহূর্তে একটি দৃশ্যের অবস্থান নির্দিষ্ট করে।
-
<KeyAttribute>
- গতি ক্রম চলাকালীন একটি নির্দিষ্ট মুহুর্তে দর্শন বৈশিষ্ট্যগুলি নির্দিষ্ট করে৷
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 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-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# <KeyFrameSet>\n\nSpecifies location and attributes for views over the course of the motion\nsequence. By default, motion proceeds from the initial state to the end state.\nBy using `\u003cKeyFrameSet\u003e`, you can build more complex motions.\n\nThe `\u003cKeyFrameSet\u003e` contains\n[`\u003cKeyPosition\u003e`](/training/constraint-layout/motionlayout/ref/keyposition) or\n[`\u003cKeyAttribute\u003e`](/training/constraint-layout/motionlayout/ref/keyattribute)\nnodes. These nodes specify the position or attributes of a target view at a\nspecific point in the motion.\n[`MotionLayout`](/reference/androidx/constraintlayout/motion/widget/MotionLayout)\nsmoothly animates the view from the starting point to each intermediate point\nand then to the final destination.\n\nSuppose the initial state of the motion sequence has an opaque ball in the\nlower-left corner of the view, and the final state makes the ball transparent in\nthe upper-right corner. By default, the `MotionLayout` moves the ball smoothly\nin a diagonal line, gradually becoming transparent until it vanishes when it\nreaches its destination. By using `\u003cKeyFrameSet\u003e`, you can change this behavior.\nFor example, you can make the ball move vertically to the upper-left corner\nwhile remaining entirely opaque, then move horizontally to the upper-right\ncorner while fading out. You can do this by creating a `\u003cKeyFrameSet\u003e` and\nadding a `\u003cKeyPosition\u003e` and `\u003cKeyAttribute\u003e` inside it. The `\u003cKeyPosition\u003e`\nspecifies the intermediate location of the ball, and the `\u003cKeyAttribute\u003e`\nspecifies that the ball remains opaque at the midpoint of the motion.\n\nSyntax\n------\n\n```xml\n\u003cKeyFrameSet\u003e\n [ \u003cKeyPosition/\u003e... ]\n [ \u003cKeyAttribute/\u003e...]\n\u003c/KeyFrameSet\u003e\n```\n\nContained in\n------------\n\n[`\u003cTransition\u003e`](/training/constraint-layout/motionlayout/ref/transition)\n\nContains\n--------\n\n[`\u003cKeyPosition\u003e`](/training/constraint-layout/motionlayout/ref/keyposition)\n: Specifies a view's position at a specific moment during the motion sequence.\n\n[`\u003cKeyAttribute\u003e`](/training/constraint-layout/motionlayout/ref/keyattribute)\n: Specifies view attributes at a specific moment during the motion sequence."]]