how to Shared element transition from a fragment to an activity

后端 未结 4 599
轮回少年
轮回少年 2020-12-16 17:26

I have three fragments inside a ViewPager in an activity, I want to achieve shared element transition from one of the fragments to another activity. The transition is from a

4条回答
  •  死守一世寂寞
    2020-12-16 17:56

    I had the same problem, I couldn't find anything that helps sorry, but maybe you should reconsider why would you need a Fragment to Activity relation when you could work with a Fragment to Fragment or Activity to Activity relation.

    I've solved my problem that way changing my code to a Fragment to Fragment relation and there is plenty documentation and examples about that Shared Element Transitions

提交回复
热议问题