Created
June 16, 2020 16:22
-
-
Save rodrigomartind/fc924fdafe7f7bebfc5188edccbd9293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<Transition | |
app:constraintSetEnd="@+id/detail" | |
app:constraintSetStart="@id/start" | |
app:duration="500"> | |
<OnClick | |
app:clickAction="toggle" | |
app:targetId="@id/detailButton" /> | |
</Transition> | |
... | |
</MotionScene> |
Hi, could you share your MotionLayout file and your Motion Scene
Of course. MotionScene file and MotionLayout file. Or you can just clone my repo
There are two problems
- was described above (I set OnClick, but the problem is still relevant)
- I set the duration value of offScreen(Like/Dislike) Transition to 3500, but there are no visible changes as if he just misses this state (start -> like -> start, but cards are moving, then this state is taken into account, but for some reason, it is not displayed)
Сould you please help me in solving these problems? 😭
P.S. Links updated
UPD: Solved the second issue by replacing the current version of ConstraintLayout to 'androidx.constraintlayout:constraintlayout:2.0.0-beta4' lol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
Please, can you explain, why if I change to and implement only detail info through dropDown, it doesn't work? (sharp animation even if the duration is 5000)
P.S. in my MotionLayout I have Toolbar, which should disappear when the card is expanded to full screen