O'Reilly logo

Pro Android Graphics by Wallace Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter     17

Interactive Drawing: Using Paint and Canvas Classes Interactively

In this seventeenth chapter, you will learn how to use the Android Paint and Canvas classes interactively, in real time, using your Android device’s touchscreen. You will implement touchscreen event handling using the OnTouchListener( ) method and class, and learn how to enable your user to draw on their Android device’s screen interactively and in real time.

You will learn about the Android MotionEvent, List, ArrayList, and Context classes, as well as much more detail regarding Android’s Paint and Canvas classes. We will also look specifically at the .onDraw( ) method in Android as well as how drawing to the user’s display functions within Android OS.

You will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required