After starting a new activity I'm trying to open a new xamarin.form but the SetContentView method wants an Android.Views.View input and I do not know how to recover the view from an xamarin.form
Can someone help me? Thanks
[Activity(Label = "SecondActivity", Icon = "@drawable/icon", MainLauncher = true, NoHistory = true)]
public class SecondActivity : Activity
{
public SecondActivity() { }
protected async override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
UsbSerialPage page = new UsbSerialPage(); // This is a ContentPage
// Don't work because UsbSerialPage is a ContentPage (xaml) and not an axml page
SetContentView(Resource.Layout.UsbSerialPage);
// Don't work because page is not a Android.Views.View
SetContentView(page);
}
}