Code example for SpinnerAdapter

Methods: getCount

0
	// PUBLIC METHODS 
	//------------------------------------------------------------------------- 
	 
	@Override 
	public int getCount() { 
		return adapter.getCount() + 1;
	} 
 
	@Override 
	public Object getItem(int position) {
		 
		if (position == 0) {
			return emptyItem;
		} else if (position > 0) {
			return adapter.getItem(position - 1);
		} 
		 
		return null; 
	} 
 
	@Override