Skip to content

Swipe Refresh Layout

Category Requires Version
Layout > General API 19, Android 4.4 - 4.4.4 KitKat 2

Overview

A visible component that groups other components and lets the user refresh them via a swipe-down gesture.

Events

On Refresh

Event to detect when a refresh is triggered via the swipe gesture.

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.

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.

Background Color

Color Default: #00000000  ➖ Read Write - Designer Blocks

The background color of the swipe refresh layout.

Enabled

Boolean Default: True ➖ Read Write - Designer Blocks

If set to true the swpipe refresh layout is enabled.

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.

Is Refreshing

Boolean ➖ Read - Blocks

Returns true if is actively showing refresh progress.

Large Size

Boolean Default: False ➖ Read Write - Designer Blocks

If enabled is set to true the pull size will be large, else the size is default.

Nested Scrolling

Boolean Default: False ➖ Read Write - Designer Blocks

Enable or disable nested scrolling for this view.

Progress Animation Colors

List ➖ Read Write - Blocks

Set the colors used in the progress animation. Use a 'make a list' block. The first color on the list is than the first spinner color.

Progress Background Color

Color Default: #FFFFFFFF  ➖ Read Write - Designer Blocks

Change the pull to refresh background color.

Refreshing

Boolean ➖ Write - Blocks

Notify the widget that refresh state has changed. Do not call this when refresh is triggered by a swipe gesture.

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: January 27, 2020