Skip to content

Snackbar not compile with the guidelines #15

@yoavst

Description

@yoavst

http://www.google.com/design/spec/components/snackbars-and-toasts.html#snackbars-and-toasts-usage

They are above all over elements on screen, including the floating action button.
They automatically disappear after a timeout or after user interaction elsewhere on the screen, whichever comes first. Snackbars can be swiped off screen. They do not block input on the screens they appear on and cannot receive input focus. Show only one snackbar on screen at a time.

As you can see, there are 2 things that you miss in your implementions:

  1. hide after user interaction. In the current implemention it stays after touch.
  2. Push up the floating button. I think you should provide an extra constructor with floating button, so you can push it up on showing and push it down on hiding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions