Skip to content

Updating AndroidPredictiveBackNavDecorator#2009

Merged
stagg merged 2 commits intomainfrom
j-gesture-updates
Mar 25, 2025
Merged

Updating AndroidPredictiveBackNavDecorator#2009
stagg merged 2 commits intomainfrom
j-gesture-updates

Conversation

@stagg
Copy link
Copy Markdown
Collaborator

@stagg stagg commented Mar 21, 2025

Changes

Was reviewing the predictive back guide and there are two distinct animations. One for a full surface cross-fade and another for a shared element style. Current implementation is closer to the shared element, but did both to try them out (see demos).
Not sure if we want both or how we'd pick which one to use at runtime 🤔 Going with the shared element approach.

Also ended up fix a z-indexing issue which should fix #2002

Demos

Full surface Shared element
predictive-fullsurface.mp4
predictive-shared.mp4

- Fix zindexing issues
- Update Shared element transition style predictive back
- Add code for the full screen surfaces predictive back
@stagg stagg marked this pull request as ready for review March 25, 2025 00:04
@stagg stagg requested a review from ZacSweers March 25, 2025 00:04
@ZacSweers
Copy link
Copy Markdown
Collaborator

My understanding is the right side one is what the spec is supposed to be and that anything in the framework not doing this is just lagging behind the spec. Let me ask around

@stagg stagg added this pull request to the merge queue Mar 25, 2025
Merged via the queue into main with commit 854ccfd Mar 25, 2025
5 checks passed
@stagg stagg deleted the j-gesture-updates branch March 25, 2025 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gesture navigation 2+ back swipes in a row animation pop

2 participants