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

Exercise: Pollock Plus One

In the next exercise, we take the existing Pollock app (from Chapter 6, “Working with Lists”) and add a second screen. This gives you practice in creating multiple screens and ensuring that you have a path for navigating between the two.

1. Launch Pollock from the My Project page. On the Designer screen, add another button next to the row of buttons devoted to the paint colors.

2. Rename the button to Switch in the components table. Be sure to also change the text for the button in the Properties box. Give it a different color, such as Cyan (see Figure 8.12).

Image

Figure 8.12 The Switch button with a different color.

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