售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright
Building Android UIs with Custom Views
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
Getting Started
What's a custom view
The need for custom views
Examples on the market
Setting up the environment
Installing development tools
How to set up an emulator
How to set up a real device for developing
Creating our own first custom view
Extending a view
Creating a simple view from scratch
Summary
Implementing Your First Custom View
Measuring and parameterizing our custom view
Measuring our custom view
Parameterizing our custom view
Instantiating custom views
Instantiating custom views from code
Builder pattern
Creating a custom layout
Extending ViewGroup
Basic rendering
Creating the basic circular activity indicator
Summary
Handling Events
Basic event handling
Reacting to touch events
Drag events
Complex layouts
Advanced event handling
Detecting gestures
Summary
Advanced 2D Rendering
Drawing operations
Bitmaps
Using the Paint class
Drawing more primitives
Drawing text
Transformations and operations
Putting it all together
Summary
Introducing 3D Custom Views
Introduction to OpenGL ES
Getting started with OpenGL ES in Android
Drawing basic geometry
Drawing geometry
Adding volume
Adding textures
Loading external geometry
Summary
Animations
Custom-made animations
Timed frame animations
Fixed timestep
Using Android SDK Classes
ValueAnimator
ObjectAnimator
Summary
Performance Considerations
Performance impact and recommendations
The impact of not following the best practices
Code optimization
Mocking up the preview window
Summary
Sharing Our Custom View
Best practices for sharing our custom view
Considerations and recommendations
Configurable
Publishing our custom view
Open sourcing our custom view
Creating a binary artifact
Summary
Implementing Your Own EPG
Building an EPG
EPG basics and animation setup
Interaction
Zooming
Configurations and Extensions
Making it configurable
Implementing callbacks
Summary
Building a Charts Component
Building a basic chart custom view
Margins and padding
Basic implementation
Optimizations and improvements with Paths
Background lines and details
Customizations
Adding advanced features
Real-time updates
Multiple data sets
Zooming and scrolling
Summary
Creating a 3D Spinning Wheel Menu
Creating an interactive 3D custom view
Adding interactions
Improving interactions and animations
Adding actionable callbacks
Customizations
Beyond the basic implementation
Rendering text
Multiple faces
Summary
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜