0
私はXFとFreshMVVMフレームワークに使用して、私はUIの問題を持っている XamarinフォームとFreshMVVMアンドロイドUIの問題
私のコードは次のとおりです。
App.cs
public const string NAVIGATION_LOGIN = "NavigationContainerLogin";
public const string NAVIGATION_MASTER_DETAIL = "NavigationContainterMasterDetail";
private FreshMasterDetailNavigationContainer _mainNav;
private FreshNavigationContainer _loginNav;
public App()
{
//prepare two navigation container
_mainNav = CreateMasterDetailNavigation();
_loginNav = CreateLoginNavigation();
if (Settings.IsSignedIn)
{
MainPage = _mainNav;
}
else
{
MainPage = _loginNav;
}
}
プライベートFreshMasterDetailNavigationContainer CreateMasterDetailNavigation() { var masterDetailNav = new FreshMasterDetailNavigationContainer(NAVIG ATION_MASTER_DETAIL);
masterDetailNav.Init("eDocine", "hamburger.png");
masterDetailNav.Master = FreshPageModelResolver.ResolvePageModel<MenuPageModel>();
masterDetailNav.Detail = new FreshNavigationContainer(FreshPageModelResolver.ResolvePageModel<HomePageModel>())
{
BarBackgroundColor = Settings.IsDoctorUser ? DataHelper.GreenCoor : DataHelper.BlueColor,
BarTextColor = Color.White
};
return masterDetailNav;
}
private FreshNavigationContainer CreateLoginNavigation()
{
return new FreshNavigationContainer(FreshPageModelResolver.ResolvePageModel<ChooseUserTypePageModel>(), NAVIGATION_LOGIN);
}
public MasterDetailPage RootPage
{
get
{
return MainPage as MasterDetailPage;
}
}
ラインがどのように私はこの問題を解決することができます唯一のAndroid 5+ に表示されますか?