The minimum that must be implemented when creating a DialogFragment is either the onCreateView method or the onCreateDialog method. This is typically used for displaying an alert dialog, a confirm dialog, or prompting the user for information within an overlay without having to switch to another Activity.ĭialogFragment is now the canonical way to display overlays using Dialog directly is considered bad practice. DialogFragment is a specialized Fragment used when you want to display an overlay modal window within an activity that floats on top of the rest of the content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |