API & Integration -> RenderScript
Shape properties in RenderScript
These properties extend the base element properties.
Dimensions
Set the width and height of the shape element. When set to null, enables unboxed coordinate system for the path property.
Example
"width": null,
"height": null,
Defaults
"width": null,
"height": null,
Path
The path of a shape can be defined using either unboxed or boxed coordinates. For unboxed coordinates, set width and height to null and express the path as coordinates relative to the element's x and y position. For boxed coordinates, define your path in relation to the element's width and height using coordinates from 0% to 100%.
Example
"path": "M 0% 0% L 100% 100%",
Default
"path": null,