Skip to content

Dynamic Image

Non-Visible component
Category Requires Version
Dynamic Components API 21, Android 5.0 Lollipop 2

Overview

A component to create dynamic image in Arrangements.

Methods

Create Image

Create a new image component dynamically. Use for width/height '-1' for wrap content or '-2' for fill parent.

Params
id Number
arrangement Component
path Text
width Number
height Number

Delete Image

Remove a image component with the given id.

Params
id Number

Get Height

Returns: Number

Get the Height of a image component.

Params
id Number

Get Image By Id

Returns: Component

Returns the image referenced by its id.

Params
id Number

Get Width

Returns: Number

Get the Width of a image component.

Params
id Number

Rotation Angle

Specifies the angle of a image component with the given id.

Params
id Number
rotation Angle Number

Scale Picture To Fit

Specifies whether a image component with the given id should be resized to match the size of the ImageView.

Params
id Number
scale Boolean

Set Height

Update the Height of a image component.

Params
id Number
height Number

Set Width

Update the Width of a image component.

Params
id Number
width Number

Update Image

Update a image component with the given id.

Params
id Number
path Text

Last update: November 9, 2022