question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use MaterialFadeThrough Transition as StackTransactionModifier?

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wman1980commented, Feb 26, 2021

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.

0reactions
wman1980commented, Feb 25, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found