Hacker News new | past | comments | ask | show | jobs | submit login




They even acknowledge the limitations and problems with Toasts:

> 1. Add inline feedback

>

> Information in auto-dismissing snackbars must also be communicated using another accessible method inline or near the action that triggered the snackbar.


Snackbars aren't toasts


do you have a source for that? I understand that Toast is the name given in Android


> Note that Snackbars are preferred for brief messages while the app is in the foreground.

https://developer.android.com/reference/android/widget/Toast


That's the Android widget, not material design which is used for YouTube's UI


I fear we're talking past each other. Material Design doesn't have a Toast.

Material Design Snackbars aren't toasts:

* Snackbars are local, toasts are global

* Toasts don't receive focus, snackbars can (via the optional action)

* Toasts auto-dismiss. This is optional for snackbars

* Snackbars can explicitly be dismissed early by a user




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: