O'Reilly logo

Android in Action, Third Edition by C. Enrique Ortiz, Chris King, Robi Sen, W. Frank Ableson

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

Chapter 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.

Drag-and-drop is a touch-based gesture. With drag-and-drop gestures, you ...

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