A (175)

(Tuis.) #1
Draw 9-patch tool, 314–315
editing pane, 317
padding areas, 321–324
9-patch, 324
previewing pane, 317
Refresh command, 350
save dialog box, 325
scalable areas
checkerboard pattern, 320
patch scale slider, 319
show bad patches button, 320
show content option, 319
Show patches check box option, 318
show patches option, 320
scalable vs. padding area, 322
SlidingPane Layout container, 348

■ O


Object-oriented programming (OOP), 131
access control modifiers, 151
application programming interface (API), 150
behaviors, 133–134
classes, 136
curly braces ({ }), 138
equal sign, 137
integer (int), 137
Java keyword class, 137
string, 137
variable name, 137
constructor method, 141
data types, 151
HelloUniverse class creation (see
HelloUniverse application)
inheritance
applyBrake( ) method, 146
Car class, 145
car features, 146
extends keyword, 146
Sport class, 146
super keyword, 146
Suv subclass, 145–146
instantiating objects
applyBrake( ) method, 145
Car( ) class, 144
dot notation, 144
onCreate( ) method, 143


shiftGears( ) method, 144
turnWheel( ) method, 144
interfaces
ICar interface, 147
implements keyword, 148
public keyword, 148
Java enterprise edition (Java EE), 132
Java mobile edition (Java ME), 132
Java SE, 132
methods
accelerateSpeed( ) method, 140
applyBrake( ) method, 140
Car class, 141
dot notation, 138
downShift( ) method, 140
parameter-list, 139
shiftGears( ) method, 139–140
turnWheel( ) method, 141
upShift( ) method, 140
void keyword, 138–139
non-access modifiers
abstract keyword, 155
final keyword, 155
static keyword, 153
object hierarchy, 134
packages
Activity class, 150
android.app package, 150
bundle class, 150
Hello.World package, 149
import statements, 149–150
package keyword, 149
terminology
data encapsulation, 135–136
data fields, 135
methods, 135
OnClickListener( ) method, 251, 495–496
onCreateOptionsMenu( ) method, 219–220
onOptionsItemSelected( ) method, 220
onPause( ) method, 481
onStop( ) method, 482
OpenGL ES 3.1
android extension pack (AEP), 594
ASTC shaders, 595
compute shader, 594
geometry shader, 595
shader language, 593
tesselation shaders, 594–595

672 Index


NinePatchDrawable object (cont.)

Free download pdf