material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.2k stars 3.05k forks source link

[Motion] The start view will perform offset anim after back from an activity when using recyclerview #2338

Open Bradmrhong opened 3 years ago

Bradmrhong commented 3 years ago

I used motion animation between two activities. I found an issue below by using the demo https://github.com/skydoves/transformationlayout The card will offset after back to HomeFragment. See below:

https://user-images.githubusercontent.com/29533679/129736752-7965edb9-8419-479b-86e2-fb89d3802c49.mp4

The start view is an item of recyclerview, and the end view is a fragment of an activity.

Expected behavior: No offset animation.

Source code: using the same demo https://github.com/skydoves/transformationlayout And related same issue here.

Material Library version: 1.3.0, 1.4.0

Device: [LG G with Android 5.0.2, also found on other devices(6, 7, 8, 9, 10), especially triggered more on some low-end devices]

I tried to work around by calling APIs from MaterialContainerTransformSharedElementCallback but get less help.

Please help to check and let me know if anything that I need to do. Thank you!

Bradmrhong commented 2 years ago

Hi, can somebody help to fix or workaround this?

Bradmrhong commented 2 years ago

@drchen Hello, just want to know if you guys start checking this issue :)

hunterstich commented 2 years ago

Hey @Bradmrhong,

Yep, I'm looking into this issue

fmtjava commented 2 years ago

I have encountered the same problem. Do you have a repair plan

fmtjava commented 2 years ago

can somebody help to fix or workaround this?