I found the problem with SimpleDraweeView of fresco at the beginning. However the problem still exists after I replace with android ImageView. So I can't be sure whether the problem is due to Android or just fresco.
What the problem is
- The first activity has recycled view and each view has a ImageView (or SimpleDraweeView). The wanted scaleType is "centerCrop"
- The second activity has only one ImageView. The wanted scaleType is "fitCenter"
However in my private project, and also in the sample project.
https://github.com/JackFan-Z/ActivitySharedElementTransition
The ImageView starts with scaleType "fitCenter", which is wrong.
I tried to postpone shared element transition and set different scaleType of shared element in the callbacks of SharedElementCallback. But none of them really works. Could anyone help figure out what goes wrong, or where to debug?
The screenshots of the issue
The screenshot of the first Activity:
The screenshot of transition: