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,["# Underline\n\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nDraws a horizontal line underneath a text element.\n\nIntroduced in Wear OS 4.\n\nSyntax\n------\n\n```xml\n\u003cUnderline\u003e\n \u003c!-- Use inner elements to apply multiple text decorations.\n Here, \"Upper\" is used as an example. --\u003e\n \u003cLower ... /\u003e\n \u003cUpper\u003e\n Raw text\n \u003c/Upper\u003e\n\u003c/Underline\u003e\n```\n\nInner elements\n--------------\n\nThe `Underline` element can contain the following inner elements:\n\n- [`InlineImage`](/training/wearables/wff/group/part/text/formatter/inline-image)\n- [`Lower`](/training/wearables/wff/group/part/text/formatter/lower)\n- [`StrikeThrough`](/training/wearables/wff/group/part/text/decoration/strike-through)\n- [`Template`](/training/wearables/wff/group/part/text/formatter/template)\n- `Underline`\n- [`Upper`](/training/wearables/wff/group/part/text/formatter/upper)\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [Font](/training/wearables/wff/group/part/text/font)\n- [Shadow](/training/wearables/wff/v2/group/part/text/decoration/shadow)\n- [StrikeThrough](/training/wearables/wff/v2/group/part/text/decoration/strike-through)"]]