Back to project page CATaZine-Live.
The source code is released under:
GNU General Public License
If you think the Android project CATaZine-Live listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.melegy.catazine.view; // ww w . ja v a 2 s . c om import android.view.View; import android.widget.ListView; public interface DragNDropListener { /** * Called when a drag starts. * * @param itemView the view of the item to be dragged i.e. the drag view */ void onStartDrag(View itemView); /** * Called when a drag is to be performed. * * @param x horizontal coordinate of MotionEvent. * @param y vertical coordinate of MotionEvent. * @param listView the listView */ void onDrag(int x, int y, ListView listView); /** * Called when a drag stops. Any changes in onStartDrag need to be undone here so that the view can be used in the list again. * * @param itemView the view of the item to be dragged i.e. the drag view */ void onStopDrag(View itemView); /** * Called when an item is to be dropped. * * @param flatPosFrom index item started at. * @param flatPosTo index to place item at. */ void onDrop(int flatPosFrom, int flatPosTo); }