A (175)

(Tuis.) #1

XML and Java
Add unimplemented methods, 496–497
contentDescription parameter, 493
findViewById( ), 495
ImageView widgets, 494
onClick( ) method, 497
playAudio/stopAudioImageView, 493
setOnClickListener( ) method, 496
startService( ) method, 497–498
this keyword, 499
Static keyword, 254
Streaming video, 442
Strings.xml, 82
Structured Query Language (SQL), 508
Styles.xml, 82


■ T


Terragen3.1, 423
TextView objects, 198
createDefaultGalaxy( ) method, 200, 204–205
createUiTextViews( ) method, 200–201
findViewById( ) method, 202
LinearLayout container, 210–211
onCreate( ) method, 200
setText( ) method, 204
testingand debugging, 206
transferDataValues( ) method, 202
using LogCat
android:layout_marginLeft parameter, 210
error message, 207
setText( ) method, 209
String.valueOf( ) method, 208
valueOf( ) method, 208–209
3D modeling, 21
Tweening
alpha blending
animation set, 369–370
fade-in/fade-out, 369
real/floating-point values, 369
alpha transparency, 367
android:duration parameter, 370
Animation class, 371
hybrid animation, 387
AnimationDrawable object setup, 388
anim_lightship.xml file creation, 389
Java code, 392


<rotate> tag, 390
setText( ) method, 394
pong animation, 371
procedural concepts, 367
rotation, 368
scaling, 368
translation, 368
z-order, 368
procedural data values
pivot point, 369
ranges, From and To value, 368
repeatCount parameter, 371
repeatMode parameter, 371
XML markup, 372
animImageView instantiation, 377
event handling, 380
findViewById( ) method, 380
ImageButton object declaration, 379
ImageView object declaration, 377
ImageView setup, 376
loadAnimation( ) method, 379
rotate configuration parameters, 374
spaceShipAnim Animation object, 378
using .setBackground(null) method, 385
2D graphic design
anti-aliasing
Gaussian Blur tool, 310
jaggies, 309
aspect ratio, 303
data footprint, 310
data patterns, 310
dithering process
alpha channel, 312
diffusion dithering, 312
indexed color image, 312
PNG8 image, 311
spinner, 312
image compositing, 306
alpha-channel, 307
blending modes, 307
masking process, 308
Image compositing,
PorterDuff class, 308
lossless compression
algorithm, 310, 314
Lossless vs. Lossy, 313
lossy image compression, 313

Index 675
Free download pdf