| Line | Description| |—|—| |show();| Shows the dialog| | setContentView(R.layout.yourlayout); | sets the ContentView of the dialog to your custom layout. | | dismiss()| Closes the dialog
show()
when it is created as it is handled in the constructorAlertDialog.Builder()
class. Following the Builder Pattern, all members of the AlertDialog.Builder can be method chained to ‘build up’ the dialog instance.show()
the dialog – you do not need to call create()
then show()
on the AlertDialog instance