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.

Fig. 5.31 DooldleView package statement and import statements

Computer code has 239 lines.

5.8.2 static and Instance Variables

Class DoodleView’s static and instance variables (Fig. 5.32) are used to manage the data for ...

Get Android How to Program, 3/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.