xamarin/Xamarin.Forms

Android: Master Navigation page displayed as third bottom tabbar item

开放

#9,143 创建于 2020年1月9日

 (3 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
4.3.0help wantedi/regressionin-progressinactivep/Androidt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

We have the following pages structure: MainPage = MasterDetailPage:

  • Master: a Navigation page with a single Content page
  • Detail: a Tabbed page with 5 tabs: --- each tab is a Navigation page with a single Content page in it

Toolbar placement is set to Bottom for Android.

Steps to Reproduce

Run the attached test project on android device.

Expected Behavior

Third bottom tabbar item is displayed similar to other tabbar items. Master page is accessible via the hamburger icon.

Actual Behavior

Master page is displayed instead of third bottom tabbar item. Master page is not displayed when tapping on the hamburger icon.

Basic Information

  • Version with issue: 4.3.0.908675
  • Last known good version: 4.2.0.910310
  • IDE: Visual Studio 2019 (16.4.0) for Windows
  • Platform Target Frameworks:
    • Android: 9.0
  • Nuget Packages: NETStandard.Library (2.0.3), Xamarin.Essentials (1.3.1)
  • Affected Devices: HUAWEI VTR-L09 and others (we experienced this on multiple of our test devices)

Screenshots

Screenshot_20200120-173631 Screenshot_20200120-173639

Reproduction Link

AppWithMenuInsteadOfTabbedItem.zip

Notes

Looks like the issue was introduced with this pull request: https://github.com/xamarin/Xamarin.Forms/pull/6471 (we reverted this file and the bottom tabbar behaved correctly). Using random numbers as Ids for MasterDetailContainer also solves the issue (looks like Master navigation page gets the same ID assigned as third bottom tabbar item?).

贡献者指南