View 1
welcome_view
We want to create a view with an image, a button and a text display.
-
Add a New view:
-
Type:
View
-
Name:
Welcome
-
Image
-
Click the Add Component tab
-
Find the Media group
-
Click Image
An empty image container is added at the top of the canvas.
-
Click the image on the canvas
-
Open the Component Properties tab
-
Click Default Image
-
Upload an image from your computer
Any image in .png
, or .jpg/.jpeg
will do for this example.
Text Display
-
Click the Add Component tab
-
Find the Text Display group
-
Click Text
A new text component is added to the canvas, right below the image.
-
Click the text display on the canvas, and open the Component Properties tab
-
Open the Component Properties tab and add some text, for instance
This is the welcome view
Button
-
Open the Add Component tab
-
Find the Buttons group
-
Click Touchable Text
A new component is added to the canvas, right below the text display.
-
Click the button on the canvas, and Open the Component Properties tab
-
Under Data properties, change the text of the button to
Thank you!
-
Find Styling and check the Override box
This disables the Styles setting for the view, and allows you to change how things look manually.
-
Add a background color to it, so it stands out from the the rest of the canvas. Find Background Color and select a color with the color picker
-
Find Text Align and set that to Center
-
Find Font Size and set that to a higher value, like
24
You now have three components in your view Welcome
.
Interactivity
Make the Button Work
-
The
welcome_view
button needs an event to work-
Go to the
welcome_view
and select the View Properties tab -
Find Outputs and click New Output
-
Name the output
buttonClick
and select type Event -
Click Add
-
Select the button component on the canvas
-
Select the Component Properties tab
-
Find On Press
-
Select
buttonClick
in the drop down list
-
The button will now trigger an output event that can be connected to other things.