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 Navigation to a page without a Tabbar #27779

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Feb 13, 2025

Issues Fixed

Fixes #27980

Before After
Screen.Recording.2025-02-13.at.15.25.35.mov
Screen.Recording.2025-02-13.at.15.21.54.mov

@kubaflo kubaflo requested a review from a team as a code owner February 13, 2025 14:43
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Feb 13, 2025
Copy link
Contributor

Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@kubaflo kubaflo added platform/android 🤖 area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels Feb 13, 2025
@kubaflo kubaflo changed the title [Android] Shell Navigation to detail without Tabbar [Android] Shell Navigation to page without a Tabbar Feb 13, 2025
@kubaflo kubaflo changed the title [Android] Shell Navigation to page without a Tabbar [Android] Shell Navigation to a page without a Tabbar Feb 13, 2025
Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you include an UITest?

@@ -77,6 +77,9 @@ public override AView OnCreateView(LayoutInflater inflater, ViewGroup container,
_navigationArea = PlatformInterop.CreateNavigationBarArea(context, _outerLayout);
_bottomView = PlatformInterop.CreateNavigationBar(context, Resource.Attribute.bottomNavigationViewStyle, _outerLayout, this);

//This layout chage happens when fragment manager has completed a transaction
_navigationArea.LayoutChange += (s, e) => UpdateTabBarVisibility();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subscribe to the event when creating the View but also unsubscribe when destroying it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!. Done

@kubaflo kubaflo force-pushed the android-shell-tabbar-navigation branch from 0c3e731 to 38ce93c Compare February 13, 2025 18:54
@kubaflo
Copy link
Contributor Author

kubaflo commented Feb 13, 2025

Could you include an UITest?

What could we test in here?

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 community ✨ Community Contribution platform/android 🤖
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] [Shell] Tabbar disappears before navigation
2 participants