[Android] Elevation shadow blink bug using MaterialContainerTransform | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[Android] Elevation shadow blink bug using MaterialContainerTransform

(I am not really sure if it's right to ask such a library-specific question here since it's been long visiting SL. I have tried raising the same bug in a Stackoverflow question(https://stackoverflow.com/q/71338984/9520315) and also have reported an issue for the same but with no luck so far(https://github.com/material-components/material-components-android/issues/2592 )) Description of the issue in short :- When doing a shared element transition from one activity to another, the specific card involved in the transition is blinking after landing back. Demo Video: https://youtu.be/fiMzAIcP23o Related Code: https://github.com/Sujal1245/WALLisWALL-Wallpaper-App Any help would be appreciated 🙂 (If any part of the question doesn't follow any guidelines, please let me know, thank you :))

12th Apr 2022, 1:28 PM
Sujal Kumar
Sujal Kumar - avatar
8 Answers
+ 1
Double + Direct Messages.
13th Apr 2022, 3:22 AM
Sujal Kumar
Sujal Kumar - avatar
0
Double + Android Studio.
13th Apr 2022, 3:17 AM
Sujal Kumar
Sujal Kumar - avatar
0
The demo video shown is from a real device though and it's running the release version from Play Store.
13th Apr 2022, 3:18 AM
Sujal Kumar
Sujal Kumar - avatar
0
Double + The whole project is on Android Studio only.
13th Apr 2022, 3:20 AM
Sujal Kumar
Sujal Kumar - avatar
0
Double + I think we should take this conversation to DMs.
13th Apr 2022, 3:21 AM
Sujal Kumar
Sujal Kumar - avatar
0
Double + To clear all the details in one go:- -> I am using Android Studio and Java but I think it has nothing to do with the bug. -> The app is running fine expect that animation is causing a shadow blink effect which is unexpected. -> The transition part of code is inspired from the official Material 3 Docs so I don't know what I am doing wrong. -> The issue is only happening when I am specifying the card elevation but I want it as it is. -> The demo video shown is from a real device though and it's running the release version from Play Store.
13th Apr 2022, 3:29 AM
Sujal Kumar
Sujal Kumar - avatar
0
Double + It's connected in different activities & files and I think word limit will just exceed if I try to post all of it. That's why I added the Github link to give a better idea :)
14th Apr 2022, 2:17 AM
Sujal Kumar
Sujal Kumar - avatar