A (175)

(Tuis.) #1
optimizing digital images, 310
pixels
megapixels, 302
resolution, 302
RGB color theory
8-bit/ 256 levels, 304
color depth, 304
hexadecimal notation, 305
high dynamic range images (HDRI), 305
subtractive color, 304
WebP image format, 314

■ U


UI design
android:id parameter, 197
background image
android:background parameter, 186
android:textColor parameter, 188
background parameter, 187
@drawable/ path, 187
drawable-xhdpi folder, 186
galaxyinfoscreen.png, 186
parent layout_margin parameter, 188
createDefaultGalaxy( ), 197
createUiTextViews( ) method, 198
transferDataValues( ) method, 198
Eclipse ADT
build automatically option, 174–175
Clean dialog, 175
errors, 173
Problems tab, 173–174
String object, 174
Galaxy( ) method, 175
constructor Galaxy( ), undefined, 176
error-free, 179
Galaxy( ) constructor
method, 176–177, 179
Galaxy.java class method, 176
milkyWay, 177
numeric parameter values, 178
setGalaxyColonies(long
numberColonies):void method, 178
set( ) methods, 177–178
value delimiters, 179


Hello Universe application
activity_main.xml, 172
MainActivity.java class, 172
onCreate( ) method, 173
TextView objects, 173
LinearLayout class
android:background parameter, 185
android:layout_height parameters, 184
android:layout_margin parameter, 185
android:layout_margin parameters, 185
android:layout_width parameters, 184
android:margin parameters, 183
android:orientation
parameter, 181–182, 185
android:padding parameters, 183
string constants, 181
tools:context parameter, 180
nested LinearLayout container, 194
android:layout_height parameters, 195
android:layout_width parameters, 195
match_parent constant, 195
reconfiguration, 193
string constants, 193
wrap_content constant, 196
nestedLinearLayout container, 190
Eclipse, XML editing pane, 192
horizontal, 191
vertical, 191
onCreate( ) method, 172
TextView color parameter, 189
ViewGroup class
direct subclasses, 170
Galaxy( ) constructor, 172
margin attributes, 170
RelativeLayout class, 171
set( ) methods, 172
ViewGroup layout containers, 171
View UI widgets, 171
Uniform Resource Indentifier (URI) class
android.net package, 414
data path, 414
error tapping and data
path validation, 415
hierarchy structure, 414
immutable URI reference, 414
Uri.parse( ) method, 414–415

676 Index


2D graphic design (cont.)

Free download pdf