Adding an Icon

GeoQuiz is now up and running, but the user interface would be spiffier if the Next button also displayed a right-pointing arrow icon.

You can find such an arrow in the solutions file for this book (http://​www.bignerdranch.com/​solutions/​AndroidProgramming.zip). The solutions file is a collection of Eclipse projects – one for each chapter.

Download this file and open the 02_MVC/GeoQuiz/res directory. Within this directory, locate the drawable-hdpi, res/drawable-mdpi, and drawable-xhdpi directories.

The suffixes on these directory names refer to the screen pixel density of a device:

mdpi

medium-density screens (~160dpi)

hdpi

high-density screens (~240dpi)

xhdpi

extra-high-density screens (~320dpi)

(There is also a low-density ...

Get Android Programming: The Big Nerd Ranch Guide 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.