ऐनिमेशन वाली इमेज बनाना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
स्मार्टवॉच की होम स्क्रीन पर स्टैटिक इमेज के अलावा, ऐनिमेशन वाली इमेज भी इस्तेमाल की जा सकती हैं. इससे, उपयोगकर्ता अनुभव को बेहतर बनाया जा सकता है.
ध्यान दें कि यह सेक्शन खास तौर पर ऐनिमेशन वाली इमेज फ़ाइलों के इस्तेमाल के बारे में है. Transform
एलिमेंट का इस्तेमाल करके, स्मार्ट वॉच की होम स्क्रीन पर मौजूद कॉम्पोनेंट को ऐनिमेट किया जा सकता है. इस बारे में ज़्यादा जानने के लिए, डाइनैमिक तौर पर एलिमेंट के दिखने का तरीका बदलना पेज पर जाएं.
ऐनिमेशन में, ऐनिमेट की गई इमेज फ़ाइल या Images
का सीक्वेंस शामिल हो सकता है. ये दोनों चीज़ें एक साथ मिलकर ऐनिमेशन बनाती हैं.
इस्तेमाल की जाने वाली फ़ाइलों के साथ-साथ, आपको यह भी तय करना होगा कि ऐनिमेशन कैसा दिखे. उदाहरण के लिए, वीडियो को लूप में चलाना है या नहीं. अगर नहीं, तो वीडियो खत्म होने पर क्या करना है. इसके लिए, AnimationController
का इस्तेमाल करें.
आखिर में, सभी ऐनिमेशन के लिए थंबनेल इमेज शामिल करें.
इन सभी बातों को ध्यान में रखते हुए, बुनियादी ऐनिमेशन को इस तरह लागू किया जा सकता है:
<PartAnimatedImage x="0" y="0" width="450" height="450">
<AnimationController play="ON_VISIBLE"/>
<AnimatedImage resource="my_animation" format="AGIF"/>
<Thumbnail resource="my_animation_thumbnail" />
</PartAnimatedImage>
ऐनिमेशन वाली इमेज की सूची शामिल करने और स्टिल इमेज से ऐनिमेशन बनाने के बारे में ज़्यादा जानकारी के लिए, PartAnimatedImage
रेफ़रंस देखें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# Create animated images\n\nIn addition to static images on the watch face, animated images can bring a\nfurther dimension to the user experience.\n\nNote that this section is specifically about using animated image files. It is\npossible to animate components on the watch face using the `Transform` element,\nwhich is covered on the [Dynamically changing the appearance of\nelements](/training/wearables/wff/transform) page.\n\nAnimations can consist of either an animated image file, such as an animated\nGIF, or a sequence of `Images`, which combine together to form an animation.\n\nAs well as specifying the files to use, you'll need to define how the animation\nshould behave, for example, whether to loop the playback, or if not, what to do\nat the end, among other options. For this, use an [`AnimationController`](/training/wearables/wff/group/part/animated-image/animation-controller).\n\nFinally, for all animations, include a [thumbnail\nimage](/training/wearables/wff/group/part/animated-image/thumbnail) in all animations.\n\nPutting this together, a basic animation can be implemented as follows: \n\n \u003cPartAnimatedImage x=\"0\" y=\"0\" width=\"450\" height=\"450\"\u003e\n \u003cAnimationController play=\"ON_VISIBLE\"/\u003e\n \u003cAnimatedImage resource=\"my_animation\" format=\"AGIF\"/\u003e\n \u003cThumbnail resource=\"my_animation_thumbnail\" /\u003e\n \u003c/PartAnimatedImage\u003e\n\nConsult the [`PartAnimatedImage`](/training/wearables/wff/group/part/animated-image/part-animated-image) reference for more details on including a\nlist of animated images and constructing an animation from still images."]]