Skip to content

Horizontal Arrangement

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

Overview

A formatting element in which to place components that should be displayed from left to right. If you wish to have components displayed one over another, use VerticalArrangement instead.

Events

Click

Click listener event.

whenHorizontal Arrangement.Clickdo

Long Click

Long click listener event.

whenHorizontal Arrangement.Long Clickdo

Properties

Align Horizontal

Number Default: 1 ➖ Read Write - Designer Blocks

A number that encodes how contents of the arrangement are aligned horizontally. The choices are: 1 = left aligned, 2 = right aligned, 3 = horizontally centered. Alignment has no effect if the arrangement's width is automatic.

Horizontal Arrangement.Align Horizontal
setHorizontal Arrangement.Align Horizontal to 

Align Vertical

Number Default: 1 ➖ Read Write - Designer Blocks

A number that encodes how the contents of the arrangement are aligned vertically. The choices are: 1 = aligned at the top, 2 = vertically centered, 3 = aligned at the bottom. Alignment has no effect if the arrangement's height is automatic.

Horizontal Arrangement.Align Vertical
setHorizontal Arrangement.Align Vertical to 

Background Color

Color Default: #00000000  ➖ Read Write - Designer Blocks

Returns the component's background color

Horizontal Arrangement.Background Color
setHorizontal Arrangement.Background Color to 

Clickable

Boolean Default: False ➖ Read Write - Designer Blocks

Set the component clickable or not clickable.

Horizontal Arrangement.Clickable
setHorizontal Arrangement.Clickable to 

Height

Number ➖ Read Write - Blocks

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

Horizontal Arrangement.Height
setHorizontal Arrangement.Height to 

Height Percent

Number ➖ Write - Blocks

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

setHorizontal Arrangement.Height Percent to 

Image

Text ➖ Read Write - Designer Blocks

Returns the path of the button's image.

Horizontal Arrangement.Image
setHorizontal Arrangement.Image to 

Is Card

Boolean Default: False ➖ Read Write - Designer Blocks

If enabled the arrangement will be convert to a card view. You can detect clicks on it with the "Click" event.

Horizontal Arrangement.Is Card
setHorizontal Arrangement.Is Card to 

Scrollbar

Boolean Default: True ➖ Read Write - Designer Blocks

Whether to display a scrollbar

Horizontal Arrangement.Scrollbar
setHorizontal Arrangement.Scrollbar to 

Use Round Card

Boolean Default: False ➖ Read Write - Designer Blocks

If enabled the card layout will have then round corners.

Horizontal Arrangement.Use Round Card
setHorizontal Arrangement.Use Round Card to 

Visible

Boolean Default: True ➖ Read Write - Designer Blocks

Returns true iff the component is visible.

Horizontal Arrangement.Visible
setHorizontal Arrangement.Visible to 

Width

Number ➖ Read Write - Blocks

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

Horizontal Arrangement.Width
setHorizontal Arrangement.Width to 

Width Percent

Number ➖ Write - Blocks

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

setHorizontal Arrangement.Width Percent to