इमेज का इस्तेमाल करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
स्मार्टवॉच की होम स्क्रीन पर इमेज का इस्तेमाल करने से, उसे ज़्यादा आकर्षक बनाया जा सकता है. जैसे, फ़ुल-स्क्रीन बैकग्राउंड इमेज से लेकर, ज़्यादा दिलचस्पी बढ़ाने के लिए अलग-अलग जानकारी वाली इमेज.
अपने इमेज रिसॉर्स को res/drawable
फ़ोल्डर में डालें. उदाहरण के लिए, res/drawable/face.png
. इसके बाद, इमेज का रेफ़रंस इस तरह दें:
<PartImage x="100" y="100" width="250" height="250">
<Image resource="face"/>
</PartImage>
Watch Face Format में मौजूद अन्य कंटेनर की तरह ही, PartImage
एलिमेंट में कई तरह के बदलाव किए जा सकते हैं. जैसे, स्केल करना, घुमाना, ट्रांसफ़ॉर्म करना, रंग देना या मास्क करना.
ज़्यादा जानकारी के लिए, PartImage
रेफ़रंस देखें.
बैकग्राउंड में बदलाव करना
हर घंटे बैकग्राउंड बदलने से, दर्शकों की दिलचस्पी बढ़ सकती है.
ऐसा करने के लिए, Images
एलिमेंट का इस्तेमाल करें. उदाहरण के लिए:
<PartImage ...>
<Images change="ON_NEXT_HOUR">
<Image resource="background1"/>
<Image resource="background2"/>
...
</Images>
</PartImage>
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# Work with images\n\nUsing images in your watch face can really help bring it to life, from a\nfull-screen background image to individual detail images to add interest.\n\nPlace your image resources in the `res/drawable` folder, for example\n`res/drawable/face.png`, and then reference the image as follows: \n\n \u003cPartImage x=\"100\" y=\"100\" width=\"250\" height=\"250\"\u003e\n \u003cImage resource=\"face\"/\u003e\n \u003c/PartImage\u003e\n\nThe `PartImage` element, as with other containers in Watch Face Format,\ncan be modified in\nmany ways, including being scaled, rotated, transformed, tinted, or masked.\nSee the [`PartImage`](/training/wearables/wff/group/part/image/part-image) reference for more information.\n\n### Vary the background\n\nOne effect that can provide interest is to change the background every hour.\nThis can be achieved through the use of the `Images` element, for example: \n\n \u003cPartImage ...\u003e\n \u003cImages change=\"ON_NEXT_HOUR\"\u003e\n \u003cImage resource=\"background1\"/\u003e\n \u003cImage resource=\"background2\"/\u003e\n ...\n \u003c/Images\u003e\n \u003c/PartImage\u003e"]]