Basically Dialogs inactivates the activity at the background. So the DialogFragment does the same with increased complexity. So why should one go for DialogFragment though various subclasses of Dialog are available.
Basically Dialogs inactivates the activity at the background. So the DialogFragment does the same
Share
Fragmentsare used with in your activity, but to present a fragment as dialog (window) usingFragmentTransactionand followup with fragment’s life-cycle, you need to useDialogFragment. However, you may do use simpleDialogtoo, but then it has nothing to do with the fragment’s life-cycle.As per google docs: