xamarin/Xamarin.Forms

[Bug] TabbedPage tabs widths work inconsistently

Aberta

#7.673 aberto em 25 de set. de 2019

 (1 comentário) (1 reação) (0 responsável)C# (1.926 forks)batch import
e/3 :clock3:help wantedp/Androidt/bug :bug:up-for-grabs

Métricas do repositório

Stars
 (5.644 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Description

The TabbedPage's tabs widths work inconsistently.

Steps to Reproduce

  1. Download the official MS sample about tabbedpages: https://github.com/xamarin/xamarin-forms-samples/releases/download/68797/Xamarin_Forms___TabbedPage_with_NavigationPage.zip
  2. Remove one child in the MainPage.xaml tabbedpage.
  3. Launch the app on a tablet or on a phone in landscape orientation.

Expected Behavior

Each tab should use half of the screen.

Actual Behavior

The tabs are very small and doesn't take the whole space when there's one or two tabs.

Basic Information

  • IDE: Visual Studio Enterprise 2019 16.3
  • Platform Target Frameworks:
    • Android: 9.0
  • Nuget Packages: The packages included in the sample

Screenshots

2 tabs tablet
Tablet 2 tabs

4 tabs tablet
Tablet 4 tabs

Phone portrait
Phone portrait

Phone Landscape
Phone Landscape

Guia do colaborador