# 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:

<figure><img src="https://1663557159-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5pNfTQ4i4gxcGBvuQAOz%2Fuploads%2FK2h7YnDemr6PXwR086j1%2Flayout.jpg?alt=media&#x26;token=d6088892-6407-432f-a387-3c8290475dd4" alt="" width="375"><figcaption><p>Sketch of the app</p></figcaption></figure>

**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:

1. Create a new project and give it a suitable name.
2. Drag and drop an <mark style="color:green;">**`Image`**</mark> and a <mark style="color:green;">**`Button`**</mark> onto your screen, resulting in the following layout:&#x20;

<figure><img src="https://1663557159-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5pNfTQ4i4gxcGBvuQAOz%2Fuploads%2FUZCrtjyoHxMgBzBsn6Pd%2FMIT%20App%20Inventor_2.png?alt=media&#x26;token=e57572d5-96bf-4009-9298-5d581035ea9e" alt="" width="563"><figcaption></figcaption></figure>

1. Adjust the components' positions to the center and middle of the screen:
   * Click on <mark style="color:green;">**`Screen1`**</mark> in the <mark style="color:green;">**`Components`**</mark> tree.
   * Set <mark style="color:green;">**`AlignHorizontal`**</mark> and <mark style="color:green;">**`AlignVertical`**</mark> to <mark style="color:green;">**`Center`**</mark> in the <mark style="color:green;">**`Properties`**</mark> panel.
   * *Optional*: To use the device default theme, scroll down in the <mark style="color:green;">**`Properties`**</mark> panel and change the <mark style="color:green;">**`Theme`**</mark> to <mark style="color:green;">**`Device Default`**</mark>.
2. The <mark style="color:green;">**`Image`**</mark> component is a placeholder; upload an actual image:
   * Go to the <mark style="color:green;">**`Media`**</mark> panel, click <mark style="color:green;">**`Upload File`**</mark>, and select <mark style="color:green;">**`light_on.png`**</mark> from the <mark style="color:green;">**`media`**</mark> folder.
   * Click on the image icon or <mark style="color:green;">**`Image1`**</mark> in the <mark style="color:green;">**`Components`**</mark> tree. In the <mark style="color:green;">**`Properties`**</mark> panel, click <mark style="color:green;">**`Picture`**</mark>, select your image file, and press <mark style="color:green;">**`OK`**</mark>.
   * To prevent the image from dominating the screen, set its height to a percentage value (e.g., 60%) in the <mark style="color:green;">**`Properties`**</mark> panel.
3. Customise the <mark style="color:green;">**`Button`**</mark>:
   * Click on the <mark style="color:green;">**`Button`**</mark> on the screen.
   * In the <mark style="color:green;">**`Properties`**</mark> panel, set the <mark style="color:green;">**`Width`**</mark> to <mark style="color:green;">**`Fill parent`**</mark>.
   * Change the <mark style="color:green;">**`Text`**</mark> property to <mark style="color:green;">**`Hide`**</mark>.
4. **Congratulation!** You have completed the design phase. Now, it's time to think about implementing the app logic.
