Skip to content

Dynamic Space

Non-Visible component
Category Requires Version
Dynamic Components API 19, Android 4.4 - 4.4.4 KitKat 2

Overview

A component to create dynamic space in Arrangements.

Methods

Create Space

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

Params
id Number
arrangement Component
width Number
height Number

Delete Space

Remove a space component with the given id.

Params
id Number

Get Height

Returns: Number

Get the Height of a space component.

Params
id Number

Get Space By Id

Returns: Component

Returns the space referenced by its id.

Params
id Number

Get Width

Returns: Number

Get the Width of a space component.

Params
id Number

Set Height

Update the Height of a space component.

Params
id Number
height Number

Set Width

Update the Width of a space component.

Params
id Number
width Number

Last update: January 27, 2020