Dialog
suggest changeParameters
| Line | Description |
|---|---|
show() |
Shows the dialog. |
setContentView(R.layout.yourlayout) |
Sets the dialog content to your layout. |
dismiss() |
Closes the dialog. |
Remarks
- A
Dialogstays hidden until you callshow(). - Alert dialogs are constructed with
AlertDialog.Builder. Following the Builder Pattern, the builder methods can be chained. AlertDialog.Builder.show()creates the dialog and shows it.create()is only needed when you want theAlertDialoginstance before showing it.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents