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

whenGrid View.After Picking item do
Params
item Text

Methods

Clear Grid View

Clears the items from the component

callGrid View.Clear Grid View

Properties

Background Color

Color Default: #00000000  ➖ Read Write - Designer Blocks

Specifies the background color.

Grid View.Background Color
setGrid View.Background Color to 

Columns

Number Default: 4 ➖ Read Write - Designer Blocks

Returns number of columns for this component

Grid View.Columns
setGrid View.Columns to 

Elements

List ➖ Read Write - Blocks

List of elements to be used for GridView

Grid View.Elements
setGrid View.Elements to 

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.

setGrid View.Elements From String to 

Font Size

Number Default: 14.0 ➖ Read Write - Designer Blocks

Sets the font size of the elements

Grid View.Font Size
setGrid View.Font Size to 

Height

Number ➖ Read Write - Blocks

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

Grid View.Height
setGrid View.Height to 

Height Percent

Number ➖ Write - Blocks

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

setGrid View.Height Percent to 

Padding

Number Default: 2 ➖ Read Write - Designer Blocks

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

Grid View.Padding
setGrid View.Padding to 

Selection

Text ➖ Read Write - Blocks

Set the selection to the GridView

Grid View.Selection
setGrid View.Selection to 

Stretch Enabled

Boolean Default: True ➖ Write - Designer Blocks

Control how items are stretched to fill their space

setGrid View.Stretch Enabled to 

Text Color

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

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

Grid View.Text Color
setGrid View.Text Color to 

Thumbnail Height in DIP

Number Default: 155 ➖ Read Write - Designer Blocks

Sets the thumbnail height in DIP (Density Independent Pixels)

Grid View.Thumbnail Height in DIP
setGrid View.Thumbnail Height in DIP to 

Thumbnail Width in DIP

Number Default: 155 ➖ Read Write - Designer Blocks

Sets the thumbnail width in DIP (Density Independent Pixels)

Grid View.Thumbnail Width in DIP
setGrid View.Thumbnail Width in DIP to 

Visible

Boolean Default: True ➖ Read Write - Designer Blocks

Returns true iff the component is visible.

Grid View.Visible
setGrid View.Visible to 

Width

Number ➖ Read Write - Blocks

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

Grid View.Width
setGrid View.Width to 

Width Percent

Number ➖ Write - Blocks

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

setGrid View.Width Percent to