Skip to content

View Flipper

Category Requires Version
Layout > Views API 19, Android 4.4 - 4.4.4 KitKat 1

Overview

A visible component that can animate between two or more layout components that have been added to it.

Methods

Add Component To View

Add a component to the view flipper. The first added component will be the first visible component on the screen.

Params
component Component

Add Images To View

Use this function if you try to create a image view flipper. Please use a 'make a list' block.

Params
images List

is Flipping

Returns true if the child views are flipping.

Show Next

Show the next view.

Show Previous

Show the previous view.

Start Flipping

Start a timer to cycle through child views.

Stop Flipping

No more flips.

Properties

Add Images From String

Text ➖ Write - Designer Blocks

Use this function if you try to create a image view flipper. Use images separated by commas such as: Image1.png,Image2.png,Image3.png.

Background Color

Color Default: #00000000  ➖ Read Write - Designer Blocks

Specifies the view flippers background color.

Flip Interval

Number Default: 1000 ➖ Read Write - Designer Blocks

How long to wait before flipping to the next view in milliseconds.

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.

Swipeable

Boolean Default: True ➖ Read Write - Designer Blocks

If set to true you can swipe with your fingers through views.

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