Summary
Let’s summarize the topics covered in this chapter:
- Drag and drop support in Android 3.0, and implementing it prior to 3.0 using other methods
- Iterating through possible drop targets to see if a drop (that is, finger leaving the screen after dragging) occurred
- The difficulty of doing the math to keep track of where a dragged object is and whether it’s over a drop target
- Drag-and-drop support in Android 3.0+, which is much nicer because it eliminates a lot of guesswork
- Drag listeners, which can be any objects and do not need to be draggables or drop-target views
- The fact that a drag can occur across fragments
- The
DragEvent
object, which can contain lots of great information about what is being dragged and why - How Android takes care of ...
Get Pro Android 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.