Dialog

  • Dialogs are used to ask the user to make a choice, confirm an action, or convey critical information. Choice and confirmation dialogs appear at the bottom of the screen. Information dialogs, such as progress popups, appear in the center of the screen.
  • Dialogs that require a user decision or confirmation won't disappear until the user makes a choice, taps the Back button, or taps another location outside of the dialog.
The following example shows how to make Dialog to be positioned on the bottom. 

<Code>
    AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
    builder.setTitle("Title");
            .setMessage("Message");
            .setPositiveButton("OK", null);
            .setNegativeButton("Cancel", null);

    AlertDialog alertDialog = builder.create();
    alertDialog.getWindow().setGravity(Gravity.Bottom);
    alertDialog.show();
Find out more on
  • Dialogs

    Material design

  • In One UI, users can tap and hold list items to open a context menu with additional options for that item. The menu will appear in the form of an untitled dropdown list.