How to use MaterialFadeThrough Transition as StackTransactionModifier?
See original GitHub issueHi,
very nice library!
Currently I am asking myself how to implement MaterialFadeThrough-Transition during a stack-change?
I was able to implement a Cross-Fade Transition by using stackTransactionModifier of MultiStackNavigator like this
this.stackTransactionModifier = { setCustomAnimations( R.anim.fade_in, R.anim.fade_out, R.anim.fade_in, R.anim.fade_out ) }
But how to do this by using a MaterialFadeThrough Transition?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Building Beautiful Transitions with Material Motion for Android
The first is a single email list item card where we will use Data Binding to make sure each item has a unique...
Read more >Building beautiful transitions with Material Motion for Android ...
Material Design's motion system consists of patterns for transitioning between components or full-screen views. The patterns are designed to ...
Read more >Material Motion: Fade Through - Styling Android
In this series we'll look at the different transitions, and explore how and, perhaps more importantly, when to use them.
Read more >Building Beautiful Transitions with Material ... - Google Codelabs
Fade Through: transitions between UI elements that do not have a strong relationship to each other; uses a sequential fade out and fade...
Read more >From Nothing to Material Transitions | by Victor Brandalise
Transitions are used when you're moving from one screen to another and you want to apply animations to one or multiple elements.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ok, I worked around my issue by creating a snapshot onPause within my fragment. Sorry to spam with unrelated stuff and thanks for your response.
Actually I have a WebView within android and the webview “flickers/blinks” if a transition (MaterialSharedAxis.X) is started. My plan to prevent that was to create a bitmap snapshot and put that snapshot in front of the webview on transition start and remove that snapshot on transition end. But unfortunately I just discovered that onDestroyView of my fragment is called before onTransitionStart e.g. during a returnTransition. Damn android!