material-components / material-components/material-components-android

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

Open
#2,338 5 comments 0 reactions 1 assignee View on GitHub

@hunterstich is already working on this.

Since Mar 28, 2022.

bug Feature: Transition Needs Investigation
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/skydoves/TransformationLayout/issues/31).

**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!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.