Android - Shared Element Transition In Dialog

后端 未结 1 2074
春和景丽
春和景丽 2021-01-01 01:39

I wanted to know if there is any way to use shared elements between an activity/fragment and a dialog?

I have a project which contains dialogs and I want to make a t

相关标签:
1条回答
  • 2021-01-01 01:58

    AFAIK its impossible to use shared elements between a fragment/activity and a dialog. The best way implement this is the link you mentioned, using a dialog-themed activity that looks like a dialog and send data via intent to the acctivity.

    For sending large data with intent, you can either use parcelables or an external place to store data, e.g. a singleton class or a database. Have a look at the following answer regarding transferring large data between activities:

    Android - What's the best way to share data between activities?

    0 讨论(0)
提交回复
热议问题