I'm trying to get to grips with the Monodroid in Visual Studio. Is there a way to use C# to dynamically create multiple controls for an android layout?
I'm used to ASP.NET and so would have thought something like the following would make sense- however with this being XML and not ASP I'm a little stuck.
PlaceHolder PlaceHolder1 = new PlaceHolder();
Label myLabel = new Label();
myLabel.Text = "some text";
myLabel.ID = "label ID";
PlaceHolder1.Controls.Add(myLabel);
etc.
Any suggestions for advice will be greatly appreciated.
Thanks all.