A (175)

(Tuis.) #1
Contents xiii

GridLayout Parameters: Configuring Your Grid  272
GridLayout Alignment: The UseDefaultMargins Constant  274
Changing the Widget Order Inside of the GridLayout  276
Combining GridLayout Cells: Using a Span 282
Align GridLayout Cells: Using the layout_gravity Parameter  284
Using the Android SlidingPaneLayout Class  286
The Android SlidingPaneLayout: Class Specification  287
Using SlidingPaneLayout: Galaxy Selector  291
Creating a SlidingPaneLayout: Revising the XML  292
Set Pane Size: layout_width and layout_weight  298

Summary  299


■ Chapter 9: Android Graphic Design: Making Your UI Designs Visual ����������������������������� 301


Imaging Concepts, Formats, and Techniques  302
The Foundation of Digital Images: The “Pixel” 302
The Shape of a Digital Image: The Aspect Ratio  303
Coloring Your Digital Images: RGB Color Theory  304
Image Compositing Transparency: Alpha Channels  306
Algorithmic Image Compositing: Blending Modes  307
Masking Digital Imagery: Using Alpha Channels  308
Smoothing Edges: The Concept of Anti-Aliasing  309
Optimizing Digital Images: Compress and Dither  310
Using Indexed Color Imagery: Dithering Pixels  311
Android Image Formats: Lossless Versus Lossy  313
Creating Android NinePatchDrawable Assets  314
Installing Your Android Draw 9-patch Software  314
Opening the Source Digital Image in Draw 9-patch  316
Exploring Your New Draw 9-patch Editing Software  317
Defining Your NinePatchDrawable Scalable Areas  318
Defining Your NinePatchDrawable Padding Areas  321
Saving Your NinePatchDrawable Asset in Android  325
The ImageButton Class: Multi-state Buttons  326
The States: Normal, Pressed, Focused, Hovered  327
Free download pdf