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 ...

Get Pro Android Graphics now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.