

The DialogFragment class provides all the controls you Use a DialogFragment as a container for your dialog. These classes define the style and structure for your dialog, but you should Indeterminate progress, you should follow the design guidelines for Progress & Activity and useĪ ProgressBar in your layout, instead of using ProgressDialog. This widget is deprecated because it prevents users from interacting with theĪpp while progress is being displayed.

ProgressDialog that shows a dialog with a progress bar. DatePickerDialog or TimePickerDialog A dialog with a pre-defined UI that allows the user to select a date or time.Ĭaution: Android includes another dialog class called

Instead, use one of the following subclasses: AlertDialog A dialog that can show a title, up to three buttons, a list of Should avoid instantiating Dialog directly. The Dialog class is the base class for dialogs, but you For information about how to design your dialogs, including recommendationsįor language, read the Dialogs design guide.
