Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity-independent Snackbar #78

Open
deakjahn opened this issue Feb 4, 2015 · 2 comments
Open

Activity-independent Snackbar #78

deakjahn opened this issue Feb 4, 2015 · 2 comments

Comments

@deakjahn
Copy link

deakjahn commented Feb 4, 2015

Feature request: snackbars are seemingly intended as replacements for toasts in Android. However, toasts are not dependent on Activities, they only need a Context, meaning that they can be used from services as well, for instance. Any thoughts about reworking Snackbars to match that behavior?

@wmora
Copy link
Contributor

wmora commented Feb 8, 2015

@deakjahn I haven't considered it before. Toasts are messages that are designed to appear to be floating on top of all views thus it makes sense they should be treated as independent messaging widgets. The Snackbar design makes the widget look more attached to a particular view. Don't you think?

@deakjahn
Copy link
Author

deakjahn commented Feb 9, 2015

The new design guidelines seem to prefer snackbars for things that originally called for a toast, I guess. ("Android also provides a capsule-shaped toast, primarily used for system messaging. Toasts are similar to snackbars but do not contain actions and cannot be swiped off screen.") The real problem, as I found in my case, is when you want to show it much like attached but you need to do it from an independent service. The user would see it attached but you have no activity to link it to (unless, of course, you implement the usual workaround to keep track of your current activity from an Application, for instance).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants