Signup/Sign In

Introduction

Dialog in Android

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.

In android, you can create following types of Dialogs:

  • Alert Dialog
  • DatePicker Dialog
  • TimePicker Dialog
  • Custom Dialog

Alert Dialog

This Dialog is used to show a title, buttons(maximum 3 buttons allowed), a list of selectable items, or a custom layout.

Alert Dialog


DatePicker Dialog

This dialog provides us with a pre-defined UI that allows the user to select a date.

DatePicker  Dialog


TimePicker Dialog

This dialog provides us with a pre-defined UI that allows the user to select suitable time.

TimePicker Dialog


Custom Dialog

You can create your own custom dialog with custom characteristics.

Custom Dialog