Just looking to see if I can find out how i get the item selected in the spinner and store it in a string, i have seen the other posts about this and people say to put this line into code: (Beneath the last line of the code i posted below)
String Genders = Gender.getSelectedItem().toString();
I try but it gives me a red line underneath (getselecteditem()) - saying spinner does not contain a definition for getselecteditem()
Here is my code:
Spinner Gender;
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
SetContentView(Resource.Layout.Form);
var Genders = new String[]
{
"Male", "Female"
};
BaseMale = 2000;
Gender = FindViewById<Spinner>(Resource.Id.spinner1);
Gender.Adapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleSpinnerDropDownItem, Genders);
Would really appreciate any of your help! :)