Adding an Image to Your Application
Although looking at text is fun, the truly interesting components are added via input mechanisms and images. The following sections demonstrate how to include images in your application — it’s time to put some stuff on the screen!
Placing an image onscreen
The first element to add to the screen is the phone image (refer to Figures 4-2 and 4-3), so first you need the phone image, of course. You can download an image from this book’s source code, available from this book’s website, or you can use your own.
Adding images to a project is simple: Drag them from the folder where they’re stored to the
res/drawable-mdpi folder, ...