Code example for SimpleCursorAdapter

Methods: getCount

0
        } 
         
        @Override 
        public int getCount() { 
             
            int count = super.getCount();
 
            if (count != 0) {
                if (mUsedSectionNumbers != null) {
                    count += mUsedSectionNumbers.length;
                } 
            } 
 
            return count;
        } 
 
        @Override 
        public int getItemViewType(int position) {
             
            if (position == getPositionForSection(getSectionForPosition(position))) {
                return SEARCH_SEPARATOR_VIEW;