I am new to java and android.I am following and making app from here for drag and drop.
the following files are giving error of cannot be resolved.
import android.view.View.DragShadowBuilder;
import android.view.View.OnDragListener;
import android.view.DragEvent;
import android.content.ClipData;
I know that means the above mentioned classes are not present in main library. how should i add them or is there alternate way of doing drag and drop(please explain with give examples).
Right click on your projects --> properties --> android ----> set target 4.0
Refer this links,
http://www.edumobile.org/android/android-beginner-tutorials/drag-and-drop-ui-element/
http://techdroid.kbeanie.com/2010/04/simple-drag-n-drop-on-android.html
Try Right Click --> Android Tools --> Fix Project Properties, It worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With