Cover image for Learning Android Canvas.
Learning Android Canvas.
Title:
Learning Android Canvas.
Author:
Tahir, Mir Nauman.
ISBN:
9781783285402
Personal Author:
Physical Description:
1 online resource (120 pages)
Contents:
Learning Android Canvas -- Table of Contents -- Learning Android Canvas -- Credits -- About the Author -- Acknowledgments -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- 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 -- 1. Getting Started with Android Canvas -- Android Canvas -- Our first Android Canvas application -- Application Name -- Project Name -- Package Name -- Least possible version of SDK -- Target SDK -- Theme -- Mining our first application -- The configuration file -- The layout file -- The code file -- Summary -- 2. Drawing Threads -- The need for drawing threads -- The issue with multithreading in Android -- The Thread class -- Handler objects that run on the UI thread -- AsyncTask -- Summary -- 3. Drawing and Drawables in Android Canvas -- Drawing on a Canvas -- Drawing on a View -- Drawing on a SurfaceView -- Drawables -- Drawables from a resource image -- Drawables from resource XML -- Shape Drawables -- Summary -- 4. NinePatch Images -- Creating a NinePatch image -- Using a NinePatch image -- Summary -- 5. Touch Events and Drawing on Canvas -- Some background knowledge -- Application development -- Our custom-view class -- Defining class properties and objects -- Methods in our custom-view class -- The constructor -- The drawing method -- The measurement method -- The touch event -- Our main activity class and final output -- Summary -- 6. Putting it All Together -- The story board -- The project and application development -- The user interface -- Screen orientation -- The paint brush -- Designing the Control panel -- Setting up the layout.

Enabling the touch and painting using touch -- Enabling the color selection -- Spicing up our application with more functions -- Saving the painting -- Creating a new drawing -- Enabling eraser in our application -- Summary -- Index.
Abstract:
This book is a fast-paced, practical, step-by-step tutorial guide full of examples that are easy to follow and implement.This book is a great resource for developers who have basic Android development knowledge and want to work on graphics-rich applications and games but are totally new to working with graphics and Android Canvas.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: