Code example for CursorAdapter

Methods: getView

    public View getView(int position, View convertView, ViewGroup parent) {
        return super.getView(mListMapping.get(position, position), convertView, parent);
     * On drop, this updates the mapping between Cursor positions 
     * and ListView positions. The Cursor is unchanged. Retrieve 
     * the current mapping with {@link getCursorPositions()}. 
     * @see DragSortListView.DropListener#drop(int, int) 
    public void drop(int from, int to) {
        if (from != to) {
            int cursorFrom = mListMapping.get(from, from);
            if (from > to) {
Connect your IDE to all the code out there  Get Codota for Java