Skip to Content
Learning Java by Building Android Games - Third Edition
book

Learning Java by Building Android Games - Third Edition

by John Horton
March 2021
Beginner to intermediate
686 pages
13h 6m
English
Packt Publishing
Content preview from Learning Java by Building Android Games - Third Edition

Chapter 5: The Android Canvas Class – Drawing to the Screen

While we will leave creating our own classes for a few more chapters, our new-found knowledge regarding methods enables us to start taking greater advantage of the classes that Android provides. This entire chapter will be about the Android Canvas class and a number of related classes, including Paint and Color. These classes combined bring great power when it comes to drawing to the screen. Learning about Canvas will also teach us the basics of using any class.

Here is a summary of the topics that will be covered in this chapter:

  • Understanding the Canvas class and related classes
  • Writing a Canvas-based demo app as practice before moving on to Sub' Hunter
  • Looking at the Android coordinate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Java by Building Android Games - Second Edition

Learning Java by Building Android Games - Second Edition

John Horton
Programming Android with Kotlin

Programming Android with Kotlin

Pierre-Olivier Laurence, Amanda Hinchman-Dominguez, Mike Dunn, G. Blake Meike

Publisher Resources

ISBN: 9781800565869Supplemental Content