Pedagogic Features
Syntax Shading. For readability, we syntax shade the code, similar to Eclipse’s and Android Studio’s use of syntax coloring. Our syntax-shading conventions are as follows:
comments appear in grayconstants and literal values appear in bold darker gray keywords appear in bold blackall other code appears in non-bold black
Code Highlighting. We emphasize the key code segments in each program by enclosing them in light gray rectangles.
Using Fonts for Emphasis. We use various font conventions:
• The defining occurrences of key terms appear in bold for easy reference.
• On-screen IDE components appear in bold Helvetica (e.g., the File menu).
• Program source code appears in Lucida
(e.g., int x = 5; ...
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.