Hello.
I have the project on Xamarin.Android.
In MainActivity.cs:
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.Main);
LinearLayout mainLayout = FindViewById<LinearLayout>(Resource.Id.MyLinearLayout);
Android.Widget.RelativeLayout rl = new Android.Widget.RelativeLayout(this);
...
mainLayout.AddView (rl);
}
Can I add on MainPage only Android.Widget.RelativeLayout in Xamarin.Forms?