万本电子书0元读

万本电子书0元读

顶部广告

Building Android UIs with Custom Views电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Raimon Ràfols Montané

出  版  社:Packt Publishing

出版时间:2017-10-27

字       数:30.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Create engaging user experiences and awesome user interfaces using this guide About This Book ? Move beyond default UI templates, create and customize amazing UIs with Android Custom View ? Enable smooth data flow and create futuristic UIs by creating flexible custom views ? Scale your apps with responsive and data intensive views Who This Book Is For This book is for Android developers who want to create great user interfaces and move beyond the basics of the standard UI elements. They must have basic Android development knowledge along with basic Java programming. What You Will Learn ? Extend the standard UI widget framework by creating Custom views ? Add complex rendering, animations, and interactions to your views ? Optimize performance and decrease battery usage ? Implement custom views to share between multiple projects, or share it publicly ? Create 3D custom views using OpenGL ES In Detail To build great user interfaces for your Android apps that go beyond the standard UI elements, you need to use custom Android views. With these, you can give your app a distinctive look and ensure that it functions properly across multiple devices. This book will help you construct a great UI for your apps by teaching you how to create custom Android views. You will start by creating your first Android custom view and go through the design considerations. You will then see how the right choices will enable your custom view to perform seamlessly across multiple platforms and Android versions. You will create custom styleable attributes that work with Android XML layouts, learn to process touch events, define custom attributes, and add properties and events to them. By the end of this book, you will be able to create apps with custom views that are responsive and adaptable to make your app distinctive and an instant hit with its users. Style and approach The approach will be that of a step by step practical tutorial. The book will take you through a complete journey, right from creating your first Android view to customizing it to enable it to support any complex app.
目录展开

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

累计评论(0条) 2个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部