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
Imageand aButtononto your screen, resulting in the following layout:

Adjust the components' positions to the center and middle of the screen:
Click on
Screen1in theComponentstree.Set
AlignHorizontalandAlignVerticaltoCenterin thePropertiespanel.Optional: To use the device default theme, scroll down in the
Propertiespanel and change theThemetoDevice Default.
The
Imagecomponent is a placeholder; upload an actual image:Go to the
Mediapanel, clickUpload File, and selectlight_on.pngfrom themediafolder.Click on the image icon or
Image1in theComponentstree. In thePropertiespanel, 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
Propertiespanel.
Customise the
Button:Click on the
Buttonon the screen.In the
Propertiespanel, set theWidthtoFill parent.Change the
Textproperty toHide.
Congratulation! You have completed the design phase. Now, it's time to think about implementing the app logic.
Last updated
Was this helpful?