Code example for CursorAdapter

Methods: getView

0
    } 
 
    @Override 
    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) 
     */ 
    @Override 
    public void drop(int from, int to) {
        if (from != to) {
            int cursorFrom = mListMapping.get(from, from);
 
            if (from > to) {
                for (int i = from; i > to; --i) {