Banner, Alert, Toast, Alarm or Dialog
Five ways to tell someone something. They differ in what the message is about, how long it stays, and whether it stops the work.
The rule
Ask in order: must someone act at a robot? Alarm. Must they decide before going on? Dialog. Did they just do it? Toast. Is the whole app affected? Banner. Otherwise: Alert.
Side by side
| Component | About | Stays | Needs action | Stops the work |
|---|---|---|---|---|
| Alarm | An abnormal robot or system condition | Until cleared and acknowledged | Yes, by priority | No; critical ones lead the list |
| Dialog | A decision the task waits on | Until answered | Yes, now | Yes |
| AlertDialog | Confirming what cannot be undone | Until answered | Yes, now | Yes |
| Toast | What the person just did | 4 to 8 s; failures until dismissed | No; Undo at most | No |
| Banner | The whole app | Until its condition ends | At most one action | No |
| Alert | One page, form or record | While its condition holds | No | No |
In one line each
- Alarm: An operator must act: collision risk, e-stop, low battery on a mission.
- Dialog: A short decision before going on: rename, a choice with two or three outcomes.
- AlertDialog: Delete, revoke, force-remove: the confirm button names the consequence.
- Toast: Saved, copied, mission started, with Undo where possible.
- Banner: Maintenance, read-only mode, a licence about to end, no connection.
- Alert: A form that cannot be saved, a robot that is offline, beside what it is about.