O'Reilly logo

The Android™ Tablet Developer’s Cookbook by B.M. Harwani

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

5. System Clipboard, and Drag and Drop

The drag and drop operation is common in almost all applications. Whether it is selecting an item to purchase while shopping online or arranging items in order of preference, drag and drop is used often. In this chapter, you will learn to drag and drop text as well as images. You will learn to listen to drag events, create a drag shadow, and add the dropped view to the target view. Also, you will learn to utilize the system clipboard to implement cut, copy, and paste operations in the Android applications.

Recipe: Understanding Drag and Drop Operation

Drag and drop operation refers to the procedure of clicking and moving one view to another in the current activity. The views can be in different layouts. ...

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