Back to project page SpeechWriter.
The source code is released under:
MIT License
If you think the Android project SpeechWriter 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 edu.psu.rcy5017.speechwriter.listener; /* www . j a va 2 s .c om*/ import android.widget.ListView; import com.ericharlow.DragNDrop.DragNDropAdapter; import com.ericharlow.DragNDrop.DropListener; public class DropListenerImpl<E> implements DropListener { private final DragNDropAdapter<E> adapter; private final ListView listView; public DropListenerImpl(DragNDropAdapter<E> adapter, ListView listView) { this.adapter = adapter; this.listView = listView; } @Override public void onDrop(int from, int to) { if (adapter instanceof DragNDropAdapter) { ((DragNDropAdapter<E>)adapter).onDrop(from, to); listView.invalidateViews(); } } public DragNDropAdapter<E> getAdapter() { return adapter; } }