Building your First Mobile App: App Design
Let's begin by designing the user interface. Below is a hand-drawn diagram illustrating how the interface should look:
About the app
The application features a display containing an image accompanied by a button. When pressed, the button alters the visibility of the image and modifies the button's label text. As part of an advanced tutorial, participants will learn how to enhance their app by integrating sound effects upon interactions.
Desiging the user interface
Now, we will guide you through the process of building this interface using the MIT App Inventor platform. Follow these steps:
Create a new project and give it a suitable name.
Drag and drop an
Image
and aButton
onto your screen, resulting in the following layout:
Adjust the components' positions to the center and middle of the screen:
Click on
Screen1
in theComponents
tree.Set
AlignHorizontal
andAlignVertical
toCenter
in theProperties
panel.Optional: To use the device default theme, scroll down in the
Properties
panel and change theTheme
toDevice Default
.
The
Image
component is a placeholder; upload an actual image:Go to the
Media
panel, clickUpload File
, and selectlight_on.png
from themedia
folder.Click on the image icon or
Image1
in theComponents
tree. In theProperties
panel, clickPicture
, select your image file, and pressOK
.To prevent the image from dominating the screen, set its height to a percentage value (e.g., 60%) in the
Properties
panel.
Customise the
Button
:Click on the
Button
on the screen.In the
Properties
panel, set theWidth
toFill parent
.Change the
Text
property toHide
.
Congratulation! You have completed the design phase. Now, it's time to think about implementing the app logic.
Last updated