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,["# Image\n\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nContains a reference to an image resource, for displaying in a watch face.\n\nIntroduced in Wear OS 4.\n\nSyntax\n------\n\n```xml\n\u003cImage resource=\"string\"\u003e\n\u003c/Image\u003e\n```\n\nAttributes\n----------\n\nThe `Image` element has the following attributes. Some attributes are\nrequired while others are optional.\n\n### Attributes\n\nThe only attribute, `resource`, is required.\n\nThe following code snippet shows how to reference a static resource located\nat `res/drawable/my_image.png`: \n\n```xml\n\u003cImage resource=\"my_image\"\u003e\n\u003c/Image\u003e\n```\n| **Note:** You shouldn't include `drawable/` or `@drawable/` or the file suffix in the `resource` attribute value.\n\nAlternatively, the following expressions can be used to access complication\ndata:\n\n- `[COMPLICATION.MONOCHROMATIC_IMAGE]`\n- `[COMPLICATION.SMALL_IMAGE]`\n- `[COMPLICATION.PHOTO_IMAGE]`\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [Image](/training/wearables/wff/v2/group/part/image/image)\n- [Complication](/training/wearables/wff/complication/complication)\n- [Add images to your Android app](/codelabs/basic-android-kotlin-compose-add-images)"]]