I'm not sure how to use the parameters of startDragAndDrop()
. Here 's what I know:
Clipdata
data
- not important, just create an empty clipdata object and pass it inDragShadowBuilder
shadowBuilder
- the DragShadow of the view you are about to drag, as the name suggestsObject
myLocalState
- I have no idea what this is and what to pass in?int
flags
- just set it to0
. Could be useful if you are to drag your view from one application to another for example
So my problem is primarily with Object
myLocalState
. What could be achieved with the state, could someone give an example?