Skip to content

Grid View

Category Requires Version
Layout > General API 21, Android 5.0 Lollipop 1

Overview

A visible component that groups other components in a two-dimensional, scrollable grid.

Permissions

Events

After Picking

Triggers after an item from this component has been selected

Params
item Text

Methods

Clear Grid View

Clears the items from the component

Properties

Background Color

Color Default: #00000000  ➖ Read Write - Designer Blocks

Specifies the background color.

Columns

Number Default: 4 ➖ Read Write - Designer Blocks

Returns number of columns for this component

Elements

List ➖ Read Write - Blocks

List of elements to be used for GridView

Elements From String

Text ➖ Write - Designer Blocks

The elements specified as a string with the items separated by commas such as: Cheese,Fruit,Bacon,Radish. Each word before the comma will be an element in the list.

Font Size

Number Default: 14.0 ➖ Read Write - Designer Blocks

Sets the font size of the elements

Height

Number ➖ Read Write - Blocks

Specifies the component's vertical height, measured in pixels.

Height Percent

Number ➖ Write - Blocks

Specifies the component's vertical height as a percentageof the height of its parent Component.

Padding

Number Default: 2 ➖ Read Write - Designer Blocks

The amount of padding (in DIP) on left, top, right, bottom

Selection

Text ➖ Read Write - Blocks

Set the selection to the GridView

Stretch Enabled

Boolean Default: True ➖ Write - Designer Blocks

Control how items are stretched to fill their space

Text Color

Color Default: #000000FF  ➖ Read Write - Designer Blocks

Specifies the checkbox's text color as an alpha-red-green-blueinteger.

Thumbnail Height in DIP

Number Default: 155 ➖ Read Write - Designer Blocks

Sets the thumbnail height in DIP (Density Independent Pixels)

Thumbnail Width in DIP

Number Default: 155 ➖ Read Write - Designer Blocks

Sets the thumbnail width in DIP (Density Independent Pixels)

Visible

Boolean Default: True ➖ Read Write - Designer Blocks

Returns true iff the component is visible.

Width

Number ➖ Read Write - Blocks

Specifies the component's horizontal width, measured in pixels.

Width Percent

Number ➖ Write - Blocks

Specifies the component's horizontal width as a percentageof the Width of its parent Component.


Last update: November 9, 2022