Code example for ListAdapter

Methods: getCountgetItem

0
	} 
 
	@Override 
	public Object getItem(int position) {
		//anfangs nur ersten Adapter, dann zweiter Adapter 
		if(position<firstAdapter.getCount()){
			return firstAdapter.getItem(position);
		}else { 
			//Neue position muss berechent werden sonst out of bounds 
			int newPosition = position-firstAdapter.getCount();
			return secondAdapter.getItem(newPosition);
		} 
		 
	} 
 
	@Override 
	public long getItemId(int position) {
		 
		if(position<firstAdapter.getCount()){
			return firstAdapter.getItemId(position);
		}else {