官术网_书友最值得收藏!

  • App Inventor 2 Essentials
  • Felicia Kamriani Krishnendu Roy
  • 817字
  • 2021-07-09 19:38:57

The Designer

When you open a project or start a new project, App Inventor will take you to the Designer. This window is a graphical editor where you can create the look and feel of your mobile app by choosing components (buttons, labels, images, and so on), layouts (horizontal/vertical alignments), colors, fonts, and more. The next screenshot is a layout of the Designer (with some helpful navigation hints):

The Designer

The name of the open project is displayed in the upper-left corner. In the upper-right corner, you will see toggle buttons for the Designer and Blocks Editor (the Designer button is disabled at the moment, since we are currently in the Designer view). The Designer consists of five panels, which are explained as follows.

Palette

The Palette (found in the left-hand column of the previous Designer image) contains drawers that hold sets of tools called Components. Drawers group Components by type such as User Interface, Layout, Media, Drawing and Animation, Sensors, Social, Storage, Connectivity, and LEGO MINDSTORMS. It will take a little bit of time to remember which drawer houses which Components and what functions they have. More on Components later!

Viewer

The Viewer (found in the middle of the preceding Designer image) is the white workspace in the middle of the Designer window. When you first create a project, the default workspace name is Screen1. You cannot change the name of Screen1, although you can change the title of the screen name. This can be done in the Properties panel (as follows). The new screen name will be displayed in the Viewer and be seen by app users. Later, you may want to add more screens to your app and you can rename the subsequent screens. To build your app, you will drag Components from the Palette drawers onto the Viewer. We will be using visual components in our Fling app, so these will remain visible when dragged into the Viewer. In the subsequent chapters, we will demonstrate the use of non-visible components, which will not remain in the Viewer when added. Instead, they will be housed underneath the Viewer.

Components

Components are the tools located in the Palette drawers on the left-hand side of the Designer window (we will demonstrate what different components do once we start building apps). Once Components are dragged into the Viewer, they will also appear in the Components panel (found in the middle right of the Designer image). The Components panel lists Components and organizes them by screens. You can collapse and expand the screen Component contents for convenience. Components are listed in columns so that it is easy to see whether they exist on their own or within other Components.

To illustrate that some Components are inside other Components, the Components panel will display them in a nested (indented) list. Note that when you click on a Component in the Viewer, it will be highlighted in both the Viewer and the Components panel and display editable options in the Properties panel (described in the following section). And conversely, if you click on a Component in the Components panel, it will also be highlighted in the Viewer. Once a Component is clicked and it becomes active, you can either rename or delete it by clicking the Rename or Delete button or you can view or edit its settings in the Properties panel.

Properties

The Properties panel (found in the right-hand side column of the preceding Designer image) displays a set of configurable settings (such as size, color, and alignments) for each Screen and Component added to the Viewer. In the subsequent chapters, you will be adding more and more Components (and Screens), so make certain that the correct item is highlighted before you change its settings. The name of the active Component (or Screen) appears at the top of the Properties pane (in the earlier Designer screenshot, the active Property is Screen1 as indicated at the top of the Properties panel).

Media

The Media panel is located underneath the Components panel (see the Designer screenshot). This feature enables you to upload images, sound files, or other media files from your computer to your project. If you find a creative commons (freely shared, uncopyrighted) photo online that you'd like to use in your app, you must first download it and then click on the Upload File button in the media panel (you cannot download an image from the Internet directly into the App Inventor). Once the file is uploaded, it will be listed in both the Media panel and the Properties panel (to delete media files, click on the media file name and a popup will appear to delete the file). Note that even though the media files can also be added to the Properties panel, they cannot be deleted from the Properties panel. How to use an image, sound, or video file in your app will be explained in the future chapters.

主站蜘蛛池模板: 贡山| 宾川县| 吉木萨尔县| 朔州市| 衡东县| 托克逊县| 乌兰察布市| 雷波县| 怀柔区| 上栗县| 清丰县| 黄梅县| 革吉县| 大渡口区| 玉屏| 曲麻莱县| 山丹县| 仁寿县| 盐边县| 北流市| 保山市| 林芝县| 扶沟县| 黎川县| 临沭县| 乐平市| 固阳县| 韩城市| 石渠县| 富裕县| 九寨沟县| 绍兴县| 广东省| 宾川县| 辽宁省| 巴东县| 芷江| 龙海市| 应城市| 蒙山县| 古蔺县|