Trung Minh
New member
How do I drag view on Android?
Answer
Android Drag and Drop
Answer
Android Drag and Drop
- To drag a view we need to register it with an onTouchListener or an onLongClickListener first.
- We also need to add a listener to the view where the dragged view would be dropped. …
- The onDragListener interface contains the method onDrag which gets called whenever any DragEvent occurs.