serbelga / Material-Motion-Samples

A collection of samples using Material Components Transitions for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Container transform examples don't fade

jonasnaimark opened this issue · comments

Not sure if this is an issue with the screen recording, but in the examples the views don't fade during the transition. Instead they instantly jump from the FAB to the Details page:

https://miro.medium.com/max/1024/1*w_auOSonYemMyiUTyA9NrQ.gif

Here's how it looks on my device with the correct fading:

https://drive.google.com/file/d/1C5iIjubhOx3jCVS3PB8cnnQ4RU4Xm838/view?usp=sharing

setAllContainerColors(MaterialColors.getColor(binding.root, R.attr.colorSurface))

I've removed the start view and end view background, and I'm using this function to achieve that behaviour
https://github.com/serbelga/Material-Motion-Samples/blob/master/screenshots/fab_to_activity_slow.gif