arvind baldaniya

arvind baldaniya

  • NA
  • 339
  • 140.8k

Create android spinner(DropDown) dynamically in Xamarin

Mar 9 2017 1:24 AM
My code
 List<Models.Professional> m_prof = new List<Models.Professional>();
 
ArrayAdapter<String> prof_adapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleSpinnerItem, m_prof);
var spnrProfesion = main_view.FindViewById<Spinner>(Resource.Id.spnProfession);
spnrProfesion.Adapter = prof_adapter;
 

Answers (1)