Stay organized with collections
Save and categorize content based on your preferences.
The root element of every watchface.xml file. It contains information about
the elements that should appear in the watch face preview when users choose
which watch face to use on their Wear OS devices.
The WatchFace element must contain the following attributes:
width
Width of the visual screen on which watch face components are drawn, in
pixels. All child geometric elements, such as shapes and complications, have
their sizes and positions set relative to the visual screen size. Note that the
visual screen might be a different size than the display resolution of a
physical Wear OS device.
height
Height of the visual screen on which watch face components are drawn, in
pixels. All child geometric elements, such as shapes and complications, have
their sizes and positions set relative to the visual screen size. Note that the
visual screen might be a different size than the display resolution of a
physical Wear OS device.
The WatchFace element can also contain the following attributes:
clipShape
The shape of the visual screen to use for the watch face preview. If you use
a value of CIRCLE, it's likely that elements near the corners become partially
cut off.
The default value is CIRCLE.
cornerRadiusX
The length of half of an ellipse's horizontal axis, which creates round
corners. Use this value, along with cornerRadiusY, to create a
rounded-rectangle effect.
This value has no effect unless you specify a clipShape of RECTANGLE.
cornerRadiusY
The length of half of an ellipse's vertical axis, which creates round corners.
Use this value, along with cornerRadiusY, to create a rounded-rectangle
effect.
This value has no effect unless you specify a clipShape of RECTANGLE.
Inner elements
The WatchFace element must contain at least one Scene inner element.
The WatchFace element can also contain the following inner elements:
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["# WatchFace\n\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nThe root element of every `watchface.xml` file. It contains information about\nthe elements that should appear in the watch face preview when users choose\nwhich watch face to use on their Wear OS devices.\n\nIntroduced in Wear OS 4.\n\nSyntax\n------\n\n```xml\n\u003cWatchFace width=\"positive-integer\" height=\"positive-integer\"\n clipShape=\"NONE | CIRCLE | RECTANGLE\" cornerRadiusX=\"float\"\n cornerRadiusY=\"float\"\u003e\n \u003c!-- Only the required inner element is shown here. --\u003e\n \u003cScene\u003e\n \u003c/Scene\u003e\n\u003c/WatchFace\u003e\n```\n\nAttributes\n----------\n\nThe `WatchFace` element must contain the following attributes:\n\n`width`\n: Width of the visual screen on which watch face components are drawn, in\n pixels. All child geometric elements, such as shapes and complications, have\n their sizes and positions set relative to the visual screen size. Note that the\n visual screen might be a different size than the display resolution of a\n physical Wear OS device.\n\n`height`\n: Height of the visual screen on which watch face components are drawn, in\n pixels. All child geometric elements, such as shapes and complications, have\n their sizes and positions set relative to the visual screen size. Note that the\n visual screen might be a different size than the display resolution of a\n physical Wear OS device.\n\nThe `WatchFace` element can also contain the following attributes:\n\n`clipShape`\n\n: The shape of the visual screen to use for the watch face preview. If you use\n a value of `CIRCLE`, it's likely that elements near the corners become partially\n cut off.\n\n The default value is `CIRCLE`.\n\n`cornerRadiusX`\n\n: The length of half of an ellipse's horizontal axis, which creates round\n corners. Use this value, along with `cornerRadiusY`, to create a\n rounded-rectangle effect.\n\n This value has no effect unless you specify a `clipShape` of `RECTANGLE`.\n\n`cornerRadiusY`\n\n: The length of half of an ellipse's vertical axis, which creates round corners.\n Use this value, along with `cornerRadiusY`, to create a rounded-rectangle\n effect.\n\n This value has no effect unless you specify a `clipShape` of `RECTANGLE`.\n\nInner elements\n--------------\n\nThe `WatchFace` element must contain at least one [`Scene`](/training/wearables/wff/scene) inner element.\n\nThe `WatchFace` element can also contain the following inner elements:\n\n- [`BitmapFonts`](/training/wearables/wff/bitmap-fonts)\n- [`Metadata`](/training/wearables/wff/metadata)\n- [`UserConfigurations`](/training/wearables/wff/user-configuration/user-configurations)\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [RoundRectangle](/training/wearables/wff/group/part/draw/shape/round-rectangle)\n- [RoundRectangle](/training/wearables/wff/v2/group/part/draw/shape/round-rectangle)\n- [BitmapFonts](/training/wearables/wff/bitmap-fonts)"]]