Typographical Conventions

To make this book easier to read, certain items appear in certain fonts. Variables, constants, and types appear in a fixed-width font. Class names, interface names, and method names appear in a bold, fixed-width font.

All code and XML listings are in a fixed-width font. Code or XML that you need to type in is always bold. Code or XML that should be deleted is struck through. For example, in the following method implementation, you are deleting the call to makeText(…) and adding the call to checkAnswer(true).

@​O​v​e​r​r​i​d​e​
p​u​b​l​i​c​ ​v​o​i​d​ ​o​n​C​l​i​c​k​(​V​i​e​w​ ​v​)​ ​{​
 ​ ​ ​ ​T​o​a​s​t​.​m​a​k​e​T​e​x​t​(​Q​u​i​z​A​c​t​i​v​i​t​y​.​t​h​i​s​,​ ​R​.​s​t​r​i​n​g​.​i​n​c​o​r​r​e​c​t​_​t​o​a​s​t​, ...

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