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

22. Drag-and-drop

This chapter covers

  • The drag-and-drop classes

  • Drag-and-drop operations

  • The shadow builder

  • Listening for drag-and-drop events


Starting with Android 3.0 (API 11), developers can add drag-and-drop capabilities to applications. Drag-and-drop support is one of the neat features added in Android 3.0, a natural addition to touch-based user interfaces and tablets. Android 3.0 provides a complete framework for drag-and-drop that consists of multiple classes, events, and operations. Related to drag-and-drop are copy-and-paste operations. Although copy and paste has been around since API 1, a much richer clipboard API has been introduced in API 11.


  

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