Code example for CursorAdapter

Methods: getCount

0
    } 
 
    @Override 
    public int getCount() { 
        return super.getCount() - mRemovedCursorPositions.size();
    } 
 
    /** 
     * Get the Cursor position mapped to by the provided list position 
     * (given all previously handled drag-sort 
     * operations). 
     * 
     * @param position List position 
     * 
     * @return The mapped-to Cursor position 
     */ 
    public int getCursorPosition(int position) {
        return mListMapping.get(position, position);
    } 
 
    /**