bluelinelabs / bluelinelabs/Conductor

RecyclerView First Item Shared Element

Open
#291 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.9k
Forks
338
PR merge metrics
No merged PRs in 30d

Description

Shared element transition does not work for the first item in a RecyclerView if there is not any padding or margin.

![ezgif-2-aef0fb31b9](https://cloud.githubusercontent.com/assets/7994739/25874709/ff4f3f8a-3528-11e7-8e99-43a3c8f003cc.gif)

Here is the commit on my fork that demonstrates this behavior 5503970d8

I have reproduced this with a simple RecyclerView and a Details page in a sample project too.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing commit 5503970d8 and the linked reproduction: compare the first RecyclerView item with later items when no padding or margin is present. Trace the shared element transition from the RecyclerView to the details page, then verify the fix against a simple RecyclerView and details-page sample.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.