x Contents
XML Dimensions: Editing Dimensions Using XML 109
XML Styles: Editing Styles or Themes Using XML 110
Running Your HelloUniverse App: Using Your AVD 114
Changing the App’s Theme using XML: HOLO Dark 118
Changing the App’s Theme using XML: HOLO Light 120
XML Menus: Designing Menus for Android Apps 121
XML Manifest: Configuring the Android Manifest 123
XML Application Structure: A Bird’s Eye View 124
Using the Eclipse Graphical Layout XML Editor 125
Using Eclipse’s Graphical Manifest XML Editors 127
XML Inflation: How XML Works with Java 129
XML’s Role: Revisiting How Android Works 129
Summary 130
■ Chapter 5: Introduction to Java: Objects, Methods, Classes, and Interfaces ���������������� 131
The Three Versions, or Editions, of Java 132
The Foundation of OOP: The Java Object 133
OOP Terminology: Variables, Methods, Constants 135
Java Constructs: Create Your Own Objects 136
The Java Class: Java Code Structure Container 136
The Java Method: Java Code Function Definition 138
Constructor Methods: The Java Object Blueprint 141
Instantiating Objects: The Java “new” Keyword 143
Extend an Object’s Structure: Java Inheritance 145
The Interface: Defining a Class Usage Pattern 147
Logical Collection of Classes: Using a Package 149
The API 150
Modifiers: Data Type, Access, Inheritance 150
Java Access Modifiers: Four Levels of Access 151
Non-Access Modifiers: Static, Final & Abstract 153
Creating Your HelloUniverse Class: Galaxy 156
Defining a Galaxy Class: Variables and Methods 156
Coding the Galaxy Class: Variable Declarations 157