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,["# InlineImage\n\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nRepresents an image that appears within a run of text. The image is treated as\ntext, and not as an [`Image`](/training/wearables/wff/group/part/image/image) element.\n\nIntroduced in Wear OS 4.\n\nSyntax\n------\n\n```xml\n\u003cInlineImage resource=\"relative-file-path\" source=\"string\"\n color=\"argb-color | rgb-color\"\n overlapLeft=\"float\" overlapRight=\"float\"\n width=\"integer\" height=\"integer\" /\u003e\n```\n\nAttributes\n----------\n\nThe `InlineImage` 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`resource`\n: A string that represents the relative file path to the location where the\n image is stored.\n\n`width` and `height`\n: An integer that represents the inline image's width and height.\n\n### Optional attributes\n\nThe following attributes are optional:\n\n`source`\n: An [arithmetic expression](/training/wearables/wff/common/attributes/arithmetic-expression) that evaluates to a string value.\n\n`color`\n\n: If specified, you must specify the color using either the ARGB format\n (`#ff000000` = opaque black) or the RGB format (`#000000` = black).\n\n From version 4, this attribute is [transformable](/training/wearables/wff/common/transform/transform).\n\n`overlapLeft`\n\n: A floating-point value that indicates the amount of horizontal space where\n the inline image should overlap the adjacent text on the left-hand side.\n\n`overlapRight`\n\n: A floating-point value that indicates the amount of horizontal space where\n the inline image should overlap the adjacent text on the right-hand side.\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [InlineImage](/training/wearables/wff/v2/group/part/text/formatter/inline-image)\n- [Outline](/training/wearables/wff/group/part/text/decoration/outline)\n- [Font](/training/wearables/wff/group/part/text/font)"]]