Code example for SimpleCursorAdapter

Methods: getCursor

0
		colorDefault = res.getColor(R.color.contentBg);
		colorIsBorrowed = res.getColor(R.color.listViewBorrowed);		
	} 
	 
	public Aggregate getAggregate(int position) {
		Cursor cursor = getCursor();
		if (cursor.moveToPosition(position)) {
			return new Aggregate(cursor.getInt(0), cursor.getString(1), cursor.getInt(5));
		} 
		return null; 
	} 
	 
	@Override 
	public View getView(int position, View convertView, ViewGroup parent) {
		Cursor cursor = getCursor();
	    if (cursor.moveToPosition(position)) 
	    { 
	    	AggregateHolder holder;
	    	 
	    	if (convertView == null)
	    	{