Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Cannon Game App > Self-Review Exercises

Self-Review Exercises

7.1. Fill in the blanks in each of the following statements:

a. You can create a custom view by extending class View or __________.

b. To process simple touch events for an Activity, you can override class Activity’s onTouchEvent method then use constants from class __________ (package android.view) to test which type of event occurred and process it accordingly.

c. Each SurfaceView subclass should implement the interface __________, which contains methods that are called when the SurfaceView is created, changed (e.g., its size or orientation changes) or destroyed.

d. The d in a format specifier indicates that you’re formatting a decimal integer and the f in a format specifier indicates that you’re formatting a(n) __________ value.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial