If you think the Android project Flym listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/**
* Flym/*fromwww.java2s.com*/
*
* Copyright (c) 2012-2013 Frederic Julian
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/package net.fred.feedex.view;
import android.view.View;
import android.widget.ListView;
/**
* Implement to handle an item being dragged.
*
* @author Eric Harlow
*/publicinterface 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);
}