O'Reilly logo

Android™ How to Program, Second Edition by Abbey Deitel, Harvey Deitel, Paul Deitel

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

2.5.4. Adding ImageViews to Display the Images

Next, you’ll add two ImageViews to the GUI to display the images you added to the project in Section 2.5.1. You’ll do this by dragging the ImageViews from the Palette’s Images & Media section onto the GUI below the TextView. To do so, perform the following steps:

1. Expand the Palette’s Images & Media category, then drag an ImageView onto the canvas as shown in Fig. 2.22. The new ImageView appears below the welcome-TextView node. When you drag a component onto the canvas area, the Graphical Layout editor displays green rule markers and a tooltip appears. The rule markers help you position components in the GUI. The tooltip displays how the GUI component will be configured if you drop it at the current ...

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