This is demo app for listview with drag drop animation functionality.
listView.setOnItemDragDropListListener(new OnItemDragDropListListener() {
@Override
public void onItemSwap(int indexOne, int indexTwo) {
// this method will be called when elements swapped.
Log.e("index", "indexOne : " + indexOne + ", indexTwo : " + indexTwo);
}
});
listView.setIsDragDopEnabled(true);