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

Rows and columns: the log-in screen

Section 7: Arranging the screenLesson 7.1 · ⏱ 12 min
🎯 Project goal
A log-in screen: a name, a password and two buttons. The right password is 1234.
A coloured vertical column, with a horizontal row for the two buttons inside it
A coloured vertical column, with a horizontal row for the two buttons inside it
The app running before typing
The app running before typing
  • A vertical layout puts parts on top of each other, and a horizontal layout puts them side by side.
  • To put a part inside a row or a column: choose it, then choose its place in the “Inside” property.
If the password is 1234 we welcome them, otherwise we show a message and vibrate the phone
If the password is 1234 we welcome them, otherwise we show a message and vibrate the phone
A wrong password (1111)
A wrong password (1111)
The right password: “Hello Mona 🎉”
The right password: “Hello Mona 🎉”
  1. Make the app say the number of wrong tries.

📌 Another example: a settings screen

A coloured column, with two rows inside it: in each row a word and a switch.

The design
The design
The blocks
The blocks
In the lab: the settings screen
In the lab: the settings screen
✍️ Practise
Make the example yourself: put the parts in “🎨 Design”, then the blocks, and tap ▶ Run.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Three buttons in one row.

👀 Show the solution
The design
The design

Result: three buttons side by side.

Medium

A column with a yellow background, with a title, a text box and a button in it.

👀 Show the solution
The design
The design

Result: everything inside the yellow column.

Hard

A log-in screen: a row with the “Enter” and “Clear” buttons, and “Clear” empties the two boxes.

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

Result: the two boxes are empty.

Finished the lesson? Mark it so your progress counts.