plaid icon indicating copy to clipboard operation
plaid copied to clipboard

[Question]Share transition element don't working when return

Open DorisGM opened this issue 3 years ago • 1 comments

hi, i have a question. I use share transition with fragments , at first fragment i enter second fragment from a recylcerview and the second detail fragment is DetailSupportFragment. I share the program logo with detailSupportFragment's logo , and when i scroll second fragment to bottom (logo invisible and detach from view ) and i back to first fragment . I find the recyclerview's item(last selected) image disappeared . I guess because of the view detached or view remove will result it. But seems like just fragments have this problem. I check with share element with activity, all works fine.

DorisGM avatar Dec 31 '20 02:12 DorisGM

And I find if i remove <changeTransfom/> at enter transition, share view will show when back from second fragment, but when enter from first element, transition can't remember the view original position and animation always start from the top of left rather than start from the view i choose

DorisGM avatar Dec 31 '20 02:12 DorisGM