public class MainActivity : Activity { Spinner kapely; TextView txtVybrana; ArrayAdapter adapter; protected void inicializaceUI() { kapely = FindViewById(Resource.Id.spinnerKapely); txtVybrana = FindViewById(Resource.Id.TextViewVybrana); adapter = new ArrayAdapter(this,Android.Resource.Layout.SimpleSpinnerDropDownItem); } protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView (Resource.Layout.Main); inicializaceUI(); kapely.Adapter = adapter; dopln_kapely(); kapely.ItemSelected += new EventHandler(ItemSelectedHandler); } protected void dopln_kapely() { adapter.Add("Prosím vyber"); adapter.Add("U2"); adapter.Add("Pink Floyd"); adapter.Add("RHCP"); adapter.Add("Blue October"); adapter.Add("J.A.R."); adapter.Add("Monkey Business"); } void ItemSelectedHandler(object sender,AdapterView.ItemSelectedEventArgs e) { txtVybrana.Text = Convert.ToString(adapter.GetItem(e.Position)); } }