The Fill element must contain a color attribute which specifies the color of
the fill. You must specify the color using either the ARGB format
(#ff000000 = opaque black) or the RGB format (#000000 = black).
Fromversion4,thisattributeis[transformable][4].
Inner elements
The Fill element can contain the following elements:
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,["# Fill\n\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nA fill sets the visual style of the inside of a shape.\n\nSyntax\n------\n\n```xml\n\u003cFill color=\"argb-color\" \u003e\n \u003c!-- Only the most common inner element is shown here. --\u003e\n \u003cLinearGradient /\u003e\n ...\n\u003cFill /\u003e\n```\n\nAttributes\n----------\n\nThe `Fill` element must contain a `color` attribute which specifies the color of\nthe fill. 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][4].\n\nInner elements\n--------------\n\nThe `Fill` element can contain the following elements:\n\n- [`LinearGradient`](/training/wearables/wff/group/part/draw/gradient/linear-gradient)\n- [`RadialGradient`](/training/wearables/wff/group/part/draw/gradient/radial-gradient)\n- [`SweepGradient`](/training/wearables/wff/group/part/draw/gradient/sweep-gradient)\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [Fill](/training/wearables/wff/v2/group/part/draw/style/fill)\n- [Stroke](/training/wearables/wff/v2/group/part/draw/style/stroke)\n- [Stroke](/training/wearables/wff/group/part/draw/style/stroke)"]]