Contents

Introduction

Audience for This Book

Organization of This Book

How to Use This Book

This Book’s Website

Conventions Used in This Book

Part I The Basics of Android User Interfaces

1 Android UI and Material Design

A Brief History of Android Design

Material Design

The Android Design Website

Core Principles

Standard Components

Supporting Multiple Devices

Avoiding Painful Mistakes

Summary

2 Understanding Views—The UI Building Blocks

What Is a View?

Displaying Text

Displaying Images

Views for Gathering User Input

Other Notable Views

Listening to Events

Other Listeners

Summary

3 Creating Full Layouts With View Groups and Fragments

Understanding ViewGroup and the Common Implementations

Encapsulating View Logic with Fragments

The Support Library

Summary

4 Adding App Graphics and Resources

Introduction to Resources in Android

Resource Qualifiers

Understanding Density

Supported Image Files

Nine-Patch Images

XML Drawables

Other Resources

Summary

Part II The Full Design and Development Process

5 Starting A New App

Design Methods

Defining Goals

High-Level Flow

Wireframes

Continuing with Content Pieces

Summary

6 Prototyping and Developing the App Foundation

Organizing into Activities and Fragments

Creating the First Prototype

Evaluating the First Prototype

Summary

7 Designing the Visuals

Wireframes and Graphical Design

Tools

Styles

Lighting

Colors

Text Considerations

Other Considerations

Designing Step-by-Step

Summary

8 Applying the Design

Working with the Designer

Slicing the Graphics Assets

Themes and Styles

Breaking Comps into Views

Developing the Woodworking App

Basic Testing Across Device Types

Summary

9 Polishing with Animations

Purpose of Animations

View Animations

Property Animations

Property Animation Control

ViewPropertyAnimator

Animating Form Errors

Animating Icons

Simple Transitions

Summary

Part III Advanced Topics for Android User Interfaces

10 Using Advanced Techniques

Identifying Jank

Using Systrace to Understand Jank

Optimizing Images

Additional Performance Improvements

Hierarchy Viewer

Custom Fonts

Complex TextViews

RecyclerView

Summary

11 Working with the Canvas and Advanced Drawing

Creating Custom Drawables

Paint

Canvas

Working with Text

Working with Images

Color Filters

Shaders

Summary

12 Developing Custom Views

General Concepts

Measurement

Layout

Drawing

Saving and Restoring State

Creating a Custom View

Summary

13 Handling Input and Scrolling

Touch Input

Other Forms of Input

Creating a Custom View

Summary

Appendix A Google Play Assets

Application Description

The Change Log

Application Icon

Screenshots

Feature Graphic

Promotional Graphic

Video (YouTube)

Promoting Your App

Amazon Appstore

Appendix B Common Task Reference

Dismissing the Software Keyboard

Using Full Screen Mode

Keeping the Screen On

Determining the Device’s Physical Screen Size

Determining the Device’s Screen Size in Pixels

Determining the Device DPI

Checking for a Network Connection

Checking if the Current Thread Is the UI Thread

Custom View Attributes

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.60.239