Code example for CursorAdapter

Methods: getItemId

0
    } 
 
    @Override 
    public long getItemId(int position) {
        return super.getItemId(mListMapping.get(position, position));
    } 
 
    @Override 
    public View getDropDownView(int position, View convertView, ViewGroup parent) {
        return super.getDropDownView(mListMapping.get(position, position), convertView, parent);
    } 
 
    @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()}.