Contains a reference to an image resource, for displaying in a watch face.
Introduced in Wear OS 4.
Syntax
<Image resource="string">
</Image>Attributes
The Image element has the following attributes. Some attributes are
required while others are optional.
Attributes
The only attribute, resource, is required.
The following code snippet shows how to reference a static resource located
at res/drawable/my_image.png:
<Image resource="my_image">
</Image>Alternatively, the following expressions can be used to access complication data:
[COMPLICATION.MONOCHROMATIC_IMAGE][COMPLICATION.SMALL_IMAGE][COMPLICATION.PHOTO_IMAGE]
Recommended for you
- Note: link text is displayed when JavaScript is off
- Image
- Complication
- Add images to your Android app