Code example for CursorAdapter

Methods: getView

0
                convertView = newView(fragmentActivity, null, parent);
            } 
            bindView(convertView, fragmentActivity, null);
            return convertView;
        } else { 
            return super.getView(position - 1, convertView, parent);
        } 
    } 
 
    @Override 
    public View getDropDownView(int position, View convertView, ViewGroup parent) {
        if (position == 0) {
            if (convertView == null) {
                convertView = newDropDownView(fragmentActivity, null, parent);
            } 
            bindView(convertView, fragmentActivity, null);
            return convertView;
        } else { 
            return super.getDropDownView(position - 1, convertView, parent);
        } 
    }