I would like to create a home screen with a login button, which when clicked, opens a dialog box to enter a password and then either submit or cancelled.
I have read that there are two methods to do this in order to create a DialogFragment
- using onCreateDialog()
and onCreateView()
.
What is the difference between these two options, and which one is used in which scenarios?