Dewey Dialog
A dialog that displays a title, a description, and up to three buttons. The dialog can also display a custom view. The dialog can be shown and dismissed by calling show and dismiss.
This is intended to be used as a replacement for android.app.AlertDialog, for showing short messages and actions to the user.
Start by creating a Builder and setting the title, message, and buttons. Then call create to create the dialog, or show to create and show the dialog.
It supports overriding the ui mode to force light or dark mode. In those cases, A DayNight theme must be provided via mThemeResId to make it work. Since custom view layout requires certain attributes to be set in the theme, it is recommended to use the default app theme. For UiMode.AUTOMATIC, it's not necessary.
Types
Builder for creating a DeweyDialog.
The layout of the buttons. The buttons can be laid out horizontally or vertically. The default layout is horizontal.
Used to change the style of buttons at the bottom of the dialog.
Params for creating a DeweyDialog.
The UI mode.
Properties
Functions
Get the layout inflater that considers the forced UI mode.
Set the accessibility text announced when the dialog is shown. This is used to provide context to the user when the dialog is shown.