Code example for SimpleCursorAdapter

Methods: getCount

0
		} 
	} 
 
	@Override 
	public int getCount() { 
		if (super.getCount() != 0) { 
			// sometimes your data set gets invalidated. In this case 
			// getCount() 
			// should return 0 and not our adjusted count for the headers. 
			// The only way to know if data is invalidated is to check if 
			// super.getCount() is 0. 
			return super.getCount() + usedSectionNumbers.length;
		} 
 
		return 0; 
	} 
 
	@Override 
	public Object getItem(int position) {
		if (getItemViewType(position) == TYPE_NORMAL) {
Stop searching for code, let great code find you!  Add Codota to your java IDE