xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] TabbedPage tabs widths work inconsistently #7673

Open corentinpall opened 5 years ago

corentinpall commented 5 years ago

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

Screenshots

2 tabs tablet
Tablet 2 tabs

4 tabs tablet
Tablet 4 tabs

Phone portrait
Phone portrait

Phone Landscape
Phone Landscape

PureWeen commented 5 years ago

This will most likely have to be implemented as a platform specific https://stackoverflow.com/questions/30843775/tab-not-taking-full-width-on-tablet-device-using-android-support-design-widget

Though it seems like it's a bit random from android device to android device so might need to just force it one way or the other