it seems that there are a lot of solutions of how to use dragging of views on android .
however, they are either too slow or buggy.
a known solution is to have a framelayout , and the view simply changes its layoutParams as it moves using the OnTouchListener ,as described here:
http://www.anddev.org/novice-tutorials-f8/android-drag-and-drop-of-normal-views-not-bitmaps-t13404.html
however, if the view is an imageView , when reaching the most right (or most bottom) side of the framelayout , the image shrinks .
another possible solution is to use the canvas in order to show the dragged content , as described here:
http://www.anddev.org/basic_drag_and_drop-t3095.html
however, i'm not sure how to use it for complex views.
does anyone know of a good solution , one that let the size of the dragged view stay the same , no matter where it is in its container?
please help me .
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…