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.35k stars 190 forks source link

Transition for DialogFragment #16

Closed XWayne closed 3 years ago

XWayne commented 3 years ago

Hey! This is awesome. As you mention in :https://github.com/skydoves/TransformationLayout/issues/8#issuecomment-639301730_ , how DialogFragment work? Thank you a lot .

This library can be used only between View, Fragment, Activity, and DialogFragment. Thank you :)

Originally posted by @skydoves in https://github.com/skydoves/TransformationLayout/issues/8#issuecomment-639301730

skydoves commented 3 years ago

Hi, @XWayne. It works the same way as Fragment because the DialogFragment extends Fragment as a parent. You can test using the demo project after changing that MainSingleDetailFragment extends Fragment.

XWayne commented 3 years ago

Thanks . but I mean showing as a Dialog with transformation , instead of a simple Fragment

It just works as a plain Dialog without transformation after changing that MainSingleDetailFragment extends DialogFragment

image

I am quite confused , thanks a lot .