StatusBar 与 Xamarin.Forms 2.3.4 中 Android 上的 NavigationPage 重叠 [英] StatusBar overlaps NavigationPage on Android from Xamarin.Forms 2.3.4

查看:34
本文介绍了StatusBar 与 Xamarin.Forms 2.3.4 中 Android 上的 NavigationPage 重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如图所示,将 Xamarin 表单从最新的 2.3.3 版本更新到第一个 2.3.4 版本时,状态栏与导航栏重叠.此行为在当前版本 2.4.0.38779 中仍然存在.尽管 Xamarin.Forms 更新,但没有更改这两个图像之间的代码.

As shown in the image, when updating Xamarin forms from the latest 2.3.3 version to the first 2.3.4 version, the statusbar overlaps the navigation bar. This behaviour ist still there in current version 2.4.0.38779. No code was changed between those both images despite the Xamarin.Forms update.

我使用 MasterDetailPage,其中详细信息部分包含一个导航页面,其中包含一个 ContentPage.没有自定义的东西,只有默认页面.我找不到任何与此相关的问题,也找不到任何可解释这种行为变化的重大更改.

I use a MasterDetailPage, where the detail part contains a navigation page with a ContentPage inside. No custom stuff, just the default pages. I cannot find any issues relating this nor any breaking changes documented explaining this change in behaviour.

对我来说,正确的显示似乎是版本 <2.3.4 中的变体.或者新的显示是否正确,我必须设置一些标志才能将导航栏拉到状态栏下方?

For me it seems the correct display is the variant in version <2.3.4. Or is the new display correct and I have to set some flag to pull the navigation bar beneath the statusbar?

PS:我使用 Prism.Forms 作为框架.

PS: I use Prism.Forms as framework.

推荐答案

更新:问题已在 Xamarin 3 中解决

UPDATE: Problem is solved in Xamarin 3

原文:

回答我自己的问题:

很遗憾,目前无法实现:

Unfortunately this is not possible at the moment:

有一个关于这个问题的拉取请求:PR

There is a pull request regarding the issue: PR

还有一个更新的拉取请求:https://github.com/xamarin/Xamarin.Forms/pull/1287

And a renewed Pull request: https://github.com/xamarin/Xamarin.Forms/pull/1287

错误报告:Bugzilla

来自 BjornB 提出 PR 的主题:Xamarin 论坛

Thread from BjornB who suggested the PR: Xamarin Forum

这篇关于StatusBar 与 Xamarin.Forms 2.3.4 中 Android 上的 NavigationPage 重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆