Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] [Shell] Tabbar disappears before navigation #27980

Open
kubaflo opened this issue Feb 22, 2025 · 0 comments · May be fixed by #27779
Open

[Android] [Shell] Tabbar disappears before navigation #27980

kubaflo opened this issue Feb 22, 2025 · 0 comments · May be fixed by #27779
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@kubaflo
Copy link
Contributor

kubaflo commented Feb 22, 2025

Description

When using Shell.Current.GoToAsync("//DetailsPage"), if DetailsPage has Shell.TabBarIsVisible="False" and takes some time to load (which is not that uncommon), the navigation experience on Android is poor because the tab bar disappears before the user is fully navigated to the page. On iOS, this works correctly.

This delay causes a visual inconsistency where the tab bar disappears too soon, making the transition feel unpolished.

iOS works fine but Android...
412933495-b060c127-89ca-4c23-85e6-2b842666aea4.mov
Screen.Recording.2025-02-13.at.15.25.35.mov

Steps to Reproduce

The DetailPage

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
        x:Class="Maui.Controls.Sample.DetailPage"
        Shell.TabBarIsVisible="False"
        BackgroundColor="Green"
        xmlns:local="clr-namespace:Maui.Controls.Sample">
<ScrollView>
        <VerticalStackLayout
                x:Name="CV">
                <BindableLayout.ItemTemplate>
                        <DataTemplate>
                                <Image Source="dotnet_bot.png"/>
                        </DataTemplate>
                </BindableLayout.ItemTemplate>
        </VerticalStackLayout>
</ScrollView>
</ContentPage>
public DetailPage()
{
	InitializeComponent();
	BindableLayout.SetItemsSource(CV, Enumerable.Range(1, 4000).Select(i => $"Item {i}").ToList());
}

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@kubaflo kubaflo added the t/bug Something isn't working label Feb 22, 2025
@kubaflo kubaflo added platform/android 🤖 area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events area-controls-shell Shell Navigation, Routes, Tabs, Flyout s/verified Verified / Reproducible Issue ready for Engineering Triage labels Feb 22, 2025
@jfversluis jfversluis added this to the .NET 9 SR5 milestone Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants