API & Integration -> RenderScript

Composition properties in RenderScript

These properties extend the base element properties.

Dimensions

Set the width and height of the composition element. When set to null, dimensions will automatically adjust to fit all relatively positioned child elements.

Example

"width": "100%", "height": "100%",

Defaults

"width": "100%", "height": "100%",

Loop settings

Enable looping of the composition content. Use 'plays' to set the number of repetitions, or leave null for infinite looping.

Example

"loop": true, "plays": 3,

Defaults

"loop": false, "plays": null,