انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents

What is Robo Apps?

Section 1: The start: your first appLesson 1.1 · ⏱ 7 min

Every app has two parts: the look you see (the design), and the work that happens when you tap (the blocks). This is the first example: a button that changes the text.

The design: a label “Hi” and a button “Tap here”
The design: a label “Hi” and a button “Tap here”
The blocks: when Button1 is clicked, set the text of Label1 to “Welcome! 👋”
The blocks: when Button1 is clicked, set the text of Label1 to “Welcome! 👋”
We tapped the button inside the phone, and the text changed
We tapped the button inside the phone, and the text changed
  • Every part on the screen has a name: Button1 for the first button, and Label1 for the first label.
  • The yellow block when … clicked is an “event”: it waits until someone taps the button.
  • The blue block set text of Label1 changes the label's words.

📌 Another example: a button that changes the screen

One button changes the words and the screen colour together.

The design
The design
The blocks
The blocks
In the lab: after tapping
In the lab: after tapping

Test yourself

1. What happens if we run the app and don't tap the button?
✍️ Practise
Look at the solved example and run it yourself.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

A button that writes your name in the title.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: the name appears after tapping.

Medium

A button that changes two labels together.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: both labels changed.

Hard

A button that shows a small message (toast) and changes the title.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: a message appears and disappears, and the title changes.

Finished the lesson? Mark it so your progress counts.