Back to Browse

AlertDialog Dialog class method in Android

10 views
Apr 1, 2021
11:50

A dialog is a small window that prompts the user to make a decision or enter additional information. A dialog does not fill the screen and is normally used for events that require users to take an action before they can proceed. Android AlertDialog can be used to display the dialog message with OK and Cancel buttons. It can be used to interrupt and ask the user about his/her choice to continue or discontinue. Android AlertDialog is composed of three regions: title, content area and action buttons.Android AlertDialog is the subclass of Dialog class. public AlertDialog.Builder setTitle(CharSequence) This method is used to set the title of AlertDialog. public AlertDialog.Builder setMessage(CharSequence) This method is used to set the message for AlertDialog. public AlertDialog.Builder setIcon(int) This method is used to set the icon over AlertDialog.

Download

0 formats

No download links available.

AlertDialog Dialog class method in Android | NatokHD