material-components / material-components/material-components-android
[Motion] Shared axis transition does not work when entering a fragment that contains a recycler view
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
Description: When using shared axis transition going from a fragment to another fragment which contains a recycler view, the recycler view is not animated while the rest of the fragment is animated correctly. Going back has no issue, the recycler view get animated correctly when navigate up.
Expected behavior: The recycler view should be animated like other parts of the fragment
Source code: Follow the Transition between Fragments section in https://material.io/develop/android/theming/motion#shared-axis
but use findNavController().navigate() instead of supportFragmentManager
Android API version: 30
Material Library version: 1.3.0-rc01
Device: CAT S41
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Follow the Transition between Fragments section in the linked Material motion documentation and reproduce the case with findNavController().navigate() into a fragment containing a recycler view. Compare the entering transition with navigating back, then verify that the recycler view animates like the rest of the fragment when the issue is fixed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100