A (175)

(Tuis.) #1
CHAPTER 3: An Introduction to the Android Application Development Platform 95

Once you click on Export, you will get two dialogs shown on the right side of Figure 3-18, the first
confirming that you want to replace (overwrite) the existing ic_launcher.png launcher icon, and the
second requesting File Export Image as PNG settings. These settings pertain to features supported
by the PNG image file format.


To create the other three resolution icons, rather than going through the entire work process outlined
previously from scratch, let’s take a clever shortcut that involves the Edit menu and the Undo menu
option, which is shown in Figure 3-19. This work process will save you almost a dozen iterative steps
of production work!


Figure 3-19. Use the Edit ➤ Undo Scale Image menu sequence to revert to your original 200-pixel image


All you need to do is utilize this Edit ➤ Undo Scale Image menu sequence, redo the last couple of
steps (the image cubic scaling and the File Export dialog), and then do the same work process 3
more times to scale your original 200-pixel transparent image to 96, 72, and 48 pixels. Once you do
the rescaling, you will then do the File ➤ Export and save (overwrite) your new launcher icon into the
XHDPI, HDPI, and the MDPI alternate drawable resource folders under your HelloUniverse Android
project master folder. This will replace the first ic_launcher.png file (Android robot) in each folder with
the required resolution density equivalent of your new logo launcher icon. We will be replacing this
later with a space-related truecolor (24-bit) HelloUniverse icon.

Free download pdf