2.5.4. Adding ImageViews to Display the Images
Next, you’ll add two ImageView
s to the GUI to display the images you added to the project in Section 2.5.1. You’ll do this by dragging the ImageView
s 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 ...
Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.