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
  • DownloadDownload
  • PrintPrint

Summary

Let’s conclude this chapter by quickly enumerating what you have learned about touch screens so far:

  • MotionEvent as the foundation on which touch handling is done
  • Different callbacks that handle touch events on a View object and through an OnTouchListener
  • Different types of events that occur during a touch sequence
  • How touch events travel through an entire view hierarchy, unless handled along the way
  • Information that a MotionEvent object contains about touches, including for multiple fingers
  • When to recycle a MotionEvent object and when not to
  • Determining the speed at which a finger drags across a screen
  • The wonderful world of multitouch, and the internal details of how it works
  • Using the onTap() method with maps
  • Implementing the pinch gesture, as well as other common gestures

  

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