I read few similar threads here, but none of the solutions works. I am pretty new in Xamarin Android Programming. This is the code that creates the problem:
var combo = FindViewById<Spinner>(Resource.Id.spinner);
ArrayAdapter adapter = new ArrayAdapter(this, Guardian.Resource.Id.spinner, gdm.Porgram_names);
combo.Adapter = adapter;
catch (Exception exc)
Android.Content.Res.Resources+NotFoundException: Resource ID #0x7f050000 type #0x12 is not valid
The second parameter to ArrayAdapter needs to be a
Resource.Layout resource that determines how each row in the List is displayed.
It cannot be a
In other words, you've found the Spinner by an ID, then you need to say how you'd like to show the items within that Spinner using a layout.
new ArrayAdapter(this, Android.Resource.Layout.SimpleListItem1, gdm.Porgram_names);