Code example for Spinner

Methods: getSelectedItem

0
	public void setLast() { 
		selectionExtra = ":";
	} 
	 
	public String getSelection() {
		return spinner.getSelectedItem().toString() + selectionExtra;
	} 
	 
	private void remove() { 
		if(parentView != null)
			parentView.removeView(this);
		if(tagsFragment != null)
			tagsFragment.tagEntries.remove(this);
	} 
	 
	private View.OnClickListener removeListener = new View.OnClickListener() {
		public void onClick(View v) { 
			remove(); 
		} 
	}; 
}