skydoves / TransformationLayout

🌠 Transform between two Views, Activities, and Fragments, or a View to a Fragment with container transform animations for Android.
Apache License 2.0
2.38k stars 195 forks source link

Fragment to another fragment but different activity #9

Closed fjr619 closed 4 years ago

fjr619 commented 4 years ago

is this libs support Fragment to another fragment but different activity?

skydoves commented 4 years ago

In this case, transform a view on the fragment into activity will work.

fjr619 commented 4 years ago

can you give me example to do that? thank you

skydoves commented 4 years ago

Hi @fjr619. You can find example codes in the demo project. Thank you :)

fjr619 commented 4 years ago

maybe this is more explain what i want to achieve : Activity A have fragment A, Activity B have fragment B from fragment B it will startactivity B then inflate fragment B with fragment manager. this is my current use case

so onTransformationStartContainer on fragment A, then onTransformationEndContainer Activity B that have fragment B? is it what you mean by transform a view on the fragment into activity will work?

skydoves commented 4 years ago

Yes, it is the same as Fragment to another fragment but different activity. Fragment or View to an another Activity has another Fragment. Fragment A (Included in Activity A) to Fragment B (Included in Activity B) right?