O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Interface

1. To begin, create a new project and name it Pollock. Next, we will grab some elements in the Designer (these are laid out in Figure 4.9).

Image

Figure 4.9 The Pollock app in the Designer.

2. Drag a HorizontalArrangement component from the Layout drawer. This enables components to be put inside it, and they will be laid out from left to right.

3. From the User Interface, drag three buttons into the HorizontalArrangement. Rename each of them, calling them BrownButton, BlackButton, and WhiteButton, respectively.

4. When we add buttons in this area, centering them works better aesthetically. To do this, set the HorizontalArrangement

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required