xamarin/Xamarin.Forms

Android: Master Navigation page displayed as third bottom tabbar item

Open

#9,143 opened on 2020年1月9日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)C# (5,644 stars) (1,926 forks)batch import
4.3.0help wantedi/regressionin-progressinactivep/Androidt/bug :bug:up-for-grabs

説明

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?).

コントリビューターガイド