The Watch Face Format is required for watch faces to be installed on devices with Wear OS 5 or later pre-installed and for all new watch faces published on Google Play.
Starting in January 2026, the Watch Face Format will be required for watch faces to be installed on all Wear OS devices.
Learn more about the user-facing changes in this Help Center article.
स्मार्टवॉच की होम स्क्रीन से जुड़ी समस्याएं हल करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Wear OS by Google के लिए कस्टम वॉच फ़ेस बनाना, सूचनाएं और स्मार्टवॉच पर की जाने वाली गतिविधियां बनाने से काफ़ी अलग है. इस पेज पर, स्मार्टवॉच की कुछ पहली होम स्क्रीन लागू करने के दौरान आने वाली कुछ समस्याओं के बारे में बताया गया है.
रिलेटिव मेज़रमेंट का इस्तेमाल करना
अलग-अलग मैन्युफ़ैक्चरर के Wear OS डिवाइसों की स्क्रीन के साइज़ और रिज़ॉल्यूशन अलग-अलग होते हैं. आपकी स्मार्टवॉच की होम स्क्रीन, पिक्सल की सटीक वैल्यू के बजाय, रिलेटिव मेज़रमेंट का इस्तेमाल करके इन बदलावों के हिसाब से ढल सकती है.
स्मार्ट वॉच की होम स्क्रीन बनाते समय, Canvas.getWidth()
और Canvas.getHeight()
तरीकों से कैनवस का साइज़ पाएं. इसके बाद, अपने ग्राफ़िक एलिमेंट की पोज़िशन सेट करें. इसके लिए, स्क्रीन के साइज़ के हिसाब से वैल्यू का इस्तेमाल करें. अगर आपने झलक दिखाने वाले कार्ड के जवाब में, स्मार्टवॉच की होम स्क्रीन के एलिमेंट का साइज़ बदला है, तो स्मार्टवॉच की होम स्क्रीन को फिर से बनाने के लिए, ऐसी वैल्यू का इस्तेमाल करें जो कार्ड के ऊपर बचे हुए स्पेस के कुछ हिस्से के बराबर हों.
स्मार्टवॉच की होम स्क्रीन का सैंपल ऐप्लिकेशन, स्मार्टवॉच की होम स्क्रीन को कॉन्फ़िगर करने के सबसे सही तरीके दिखाता है.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-26 (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-26 (UTC) को अपडेट किया गया."],[],[],null,["# Address watch face issues\n\nCreating a custom watch face for Wear OS by Google is substantially different from\ncreating notifications and wearable-specific activities. This page describes\nsome issues you might encounter as you implement your first few watch faces.\n\nUse relative measurements\n-------------------------\n\nWear OS devices from different manufacturers feature screens with a variety of sizes and\nresolutions. Your watch face can adapt to these variations by using relative measurements\ninstead of absolute pixel values.\n\nWhen you draw your watch face, obtain the size of the canvas with the\n[Canvas.getWidth()](/reference/android/graphics/Canvas#getWidth())\nand [Canvas.getHeight()](/reference/android/graphics/Canvas#getHeight())\nmethods. Then, set the positions of your\ngraphic elements using values that are some fraction of the detected screen size. If you\nresize the elements of your watch face in response to a peek card, use values that are\nsome fraction of the space remaining above the card to redraw your watch face.\n\nRelated resources\n-----------------\n\nThe [Watch face sample app](https://github.com/android/wear-os-samples) demonstrates the best practices for configuring a watch face."]]