Open cloner93 opened 3 years ago
A few issues KeyFrames are for modifying the behavior between states. You seem to be trying to change the end constraintSet by using KeyFrames. That will lead to bugs. Generally motion:framePosition="100" is a bug except in complex situations. It is creating a difference between the final state (The ConstraintSet) and the transitions final state the (KeyAttributes)
add "android:alpha="0" to the end constraintsets's constraints
Also
You probably do not want the <OnSwipe>
CoordnatorLayout is driving the animation.
See MotionLayout examples
hi @jafu888 thanks for your help.
as you said, I deleted all KeyFrameSets and set android:alpha="0" in constraints. also i delete <OnSwip>
, coordnatorLayout is driving the animation. But the problem remains.
Your code looks almost exactly like the example. The only thing I see odd is you set android:layout_height="wrap_content"
Not match parent
android:layout_height="match_parent"
Try that?
We have been working on an android project, and we faced with a problem in animation into the motionLayout when recyclerView is scrolling (you can see in video).
after scroll in anywhere on screen animation is fine but after scroll recyclerview appBar animation is run but so weird.
I added picture and video from UI architect to avoid confusion.
ProfileFragment.kt
ProfileFragment:
fragment_profile_xml_profile_header_info_scene.xml