O'Reilly logo

Android™ How to Program, Third Edition by Harvey M. Deitel, Paul Deitel

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

5.8 DoodleView Class

The DoodleView class (Sections 5.8.15.8.12) processes the user’s touches and draws the corresponding lines.

5.8.1 package Statement and import Statements

Figure 5.31 lists class DoodleView’s package statement and import statements. The new classes and interfaces are highlighted here. Many of these were discussed in Section 5.3, and the rest are discussed as we use them throughout class DoodleView.

 1   // DoodleView.java 2   // Main View for the Doodlz app. 3   package com.deitel.doodlz; 4 5   import android.content.Context;                               6   import android.graphics.Bitmap;                               7   import android.graphics.Canvas;                               

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