如何在状态栏下方启动MasterDetailPage? 可能吗 ? 我该怎么办?
我创建了一个MastePage并在她中添加了图标并将她设置在MainPage中:
this.Master = new MasterPage();
this.Detail = new NavigationPage(new DetailPage());
答案 0 :(得分:0)
从FormsApplicationActivity扩展MainActivty,如
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
global::Xamarin.Forms.Forms.Init (this, bundle);
LoadApplication (new App ());
}
}