Closed alirezaeiii closed 1 year ago
'''app:percentY="0.51"``` What were you trying to achieve with this?
Given this the crush in Y this:
is expected.
Why it does not happen on the way back is potentially a bug.
Do you want it to look like that? Why set y but not X?
This seems to be the look you want..
In general if you are trying to transform an image during animation. You the "KeyAttributes" scaleX,scaleY,rotation,rotationX,rotationY. They will tend to do what you expect more often.
We will continue to look into the potential bug.
The problem will be resolved by removing this line : app:layout_constraintDimensionRatio="h,1:1.5"
from details_poster Constraint. Thank you for continuing to look into the potential bug. We need to keep app:percentY="0.51"
in order to move up details_poster.
I have a Layout called fragment_detail where I have used motionLayout in it as follow :
Here is scene_show_details xml file :
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
The very 1st time that I go to detail screen, details_poster AppCompatImageView is not animated as expected : https://drive.google.com/file/d/1vwlOmNU7qCnkoswTY_QhzEWRAzj1FcH8/view?usp=sharing
As soon as I scroll to bottom of detail screen and move up, details_poster is animated as expected : https://drive.google.com/file/d/1wBLTOwk77dDwRJJhO5RuSF-dp7DGfn11/view?usp=sharing
Why is that? Is there something I missed? Why it start working as expected when I scroll to bottom of screen?
Source code can be found here : https://github.com/alirezaeiii/TMDb-Paging