Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,
Pls tell me how to do the drag and drop activity in android App..Here the thing is in my app i am having an image....I want drag and drop the image to any location of the screen and that to the image should not cross the borders of the screen...
Posted
Comments
Sudhakar Shinde 16-Jul-13 2:32am    
What is that you have tried for this? Use google to get several examples and you should use those to implement your idea.
Bharath Kumar Gorle 16-Jul-13 2:34am    
http://androidrox.wordpress.com/2011/05/13/android-sample-app-drag-and-drop-image-using-touch/

I used this code...It is working for only absolute layout...i would like to go for another layout...

1 solution

 
Share this answer
 
Comments
Bharath Kumar Gorle 18-Jul-13 1:32am    
Thank you, for ur answer, Here the thing is I have to drag and drop an image any location on the screen..You gave some sites links those are working to drag and drop to another layout but not the same layout and that to i am having the code but it is working only for absolute layout not for another layout...
syed shanu 18-Jul-13 1:45am    
Hi,
Thanks for your comment,
Check this links might be related to your questions.
http://stackoverflow.com/questions/11027792/android-drag-and-drop-images-on-the-screen
http://www.verious.com/board/Giancarlo-Leonio/implementing-drag-and-drop-in-android/
http://stackoverflow.com/questions/4524288/drag-and-drop-images-in-android
http://stackoverflow.com/questions/14291752/image-dragging-and-dropping

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900