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

Implement support for custom page transition animation not Shell for Android #16353

Open
Alex-Dobrynin opened this issue Jul 25, 2023 · 4 comments
Labels

Comments

@Alex-Dobrynin
Copy link

Description

It would be great to have possibility to change default fragment transition animation as it was is xam forms navigation page renderer SetupPageTransition().
Because right now when navigating through pages and back it has very bad fade animation.

Public API Changes

For example, this is how it should be called navigate method on NavController inside StackNavigationManager

image

right now it just does like this
image

Intended Use-Case

It is very useful when customer wants to animate page transitions eg. scale or translate etc.

@jsuarezruiz jsuarezruiz added the area-animation Animation, Transitions, Transforms label Jul 26, 2023
@rhaly
Copy link

rhaly commented Aug 1, 2023

@Alex-Dobrynin As a workaround you can override native android resources used in maui navigation. For example nav_default_enter_anim not a great solution but it works. It will replace animation for navigation to all pages when navigating by NavigationPage.

@Alex-Dobrynin
Copy link
Author

@rhaly this works only for shell navigation, but, please, read the title

@rhaly
Copy link

rhaly commented Aug 3, 2023

@Alex-Dobrynin It works using NavigationPage im not using Shell. See repo as an example.

Screen.Recording.2023-08-03.at.14.21.43.mov

@orwo1
Copy link

orwo1 commented Feb 7, 2024

Migrating from Xamarin.Forms with PageRenderer on Android side to support custom transition,
encountered this as well.
I tried overriding the 4 xml files (suggested in #16353 (comment))
but it's not really a solution, as it also affects our Splash Activity (as in the splash now animates into and out of the screen like a regular page).
Is there a time frame to support custom transitions in Maui?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants