Import android. * May not be allowed for drag and drop example

I am new to java and android. I am following and making an application from here to drag and drop.

The following error files cannot be resolved.

import android.view.View.DragShadowBuilder; import android.view.View.OnDragListener; import android.view.DragEvent; import android.content.ClipData; 

I know this means that the above classes are not in the main library. how should I add them or is there an alternative way to do drag and drop (please explain with examples).

+4
source share
2 answers

Try right-clicking -> Android Tools -> Fix Project Properties, this worked for me.

+1
source

All Articles