Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
have a question
var spn = new ArrayAdapter<String>(this, Android.Resource.Layout.SimpleSpinnerItem, lstCS);
            spn.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            var spinner = FindViewById<Spinner>(Resource.Id.spinner);
            spinner.Adapter = spn;


i have two axml layout main.axml and child.axml
in child.axml contain Spinner with id "spinner" and i want to put thatspinner together in main.axml
the problem is spinner always return null

What I have tried:

that is no problem if i put spinner in main.xml directly
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900