A pair of floating-point values that specify the element's size.
startAngle and endAngle
A pair of floating-point values that specify the angle of the text's starting
side and the angle of the text's ending side, respectively. An angle of 0
degrees represents the 12 o'clock position on the watch face.
For example, to curve text around the top quarter of the watch face, use a
startAngle of 335.0 and an endAngle of 45.0.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-20 UTC."],[],[],null,["# TextCircular\n\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nSpecifies a circular or curved text configuration.\n\nIntroduced in Wear OS 4.\n\nSyntax\n------\n\n```xml\n\u003cTextCircular centerX=\"float\" centerY=\"float\"\n direction=\"CLOCKWISE | COUNTER_CLOCKWISE\" width=\"float\"\n height=\"float\" startAngle=\"float-degrees\"\n endAngle=\"float-degrees\" align=\"START | CENTER | END\"\n ellipsis=\"boolean\" \u003e\n \u003c!-- Possible inner elements. The PartText element syntax shows a\n more complete example. --\u003e\n \u003cTransform .../\u003e\n \u003cFont ... /\u003e\n \u003cBitmapFont ... /\u003e\n\u003c/TextCircular\u003e\n```\n\nAttributes\n----------\n\nThe `TextCircular` element has the following attributes. Some attributes are\nrequired while others are optional.\n\n### Required attributes\n\nThe following attributes are required:\n\n`centerX` and `centerY`\n\n: A pair of floating-point values that specify the position of the element's\n center.\n\n These attributes are [transformable](/training/wearables/wff/common/transform/transform).\n\n`width` and `height`\n\n: A pair of floating-point values that specify the element's size.\n\n`startAngle` and `endAngle`\n\n: A pair of floating-point values that specify the angle of the text's starting\n side and the angle of the text's ending side, respectively. An angle of 0\n degrees represents the 12 o'clock position on the watch face.\n\n For example, to curve text around the top quarter of the watch face, use a\n `startAngle` of `335.0` and an `endAngle` of `45.0`.\n\n These attributes are [transformable](/training/wearables/wff/common/transform/transform).\n\n### Optional attributes\n\nThe following attributes are optional:\n\n`direction`\n\n: Indicates the direction in which the text is written:\n\n - `CLOCKWISE` (default): Show text in the clockwise direction.\n - `COUNTER_CLOCKWISE`: Show text in the counterclockwise direction.\n\n`align`\n\n: Determines the text's alignment within its parent element:\n\n - `START`: left- or top-aligned (right-aligned when the current language uses an RTL text direction)\n - `CENTER`: center-aligned\n - `END`: right- or bottom-aligned (left-aligned when the current language uses an RTL text direction)\n\n The default value is `CENTER`.\n\n`ellipsis`\n\n: A boolean value that indicates whether to show an ellipsis if the text is too\n long to fit in the parent element. The default is `FALSE`.\n\nInner elements\n--------------\n\nThe `Text` element can contain any number of the following inner elements:\n\n- [`Transform`](/training/wearables/wff/common/transform/transform)\n- [`Font`](/training/wearables/wff/group/part/text/bitmap-font)\n- [`BitmapFont`](/training/wearables/wff/group/part/text/font)\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [TextCircular](/training/wearables/wff/v2/group/part/text/text-circular)\n- [Arc](/training/wearables/wff/group/part/draw/shape/arc)\n- [Text](/training/wearables/wff/group/part/text/text)"]]