Fixed
Status Update
Comments
sa...@gmail.com <sa...@gmail.com> #2
Absolutely agree. I wanted to replace my custom implementation with the provided Snackbar from the design library; I realized there is no dismiss listener.
If you add this feature, please also add a method parameter to the onDismiss callback that tells whether the action button was clicked or not (even though there is already an action listener). This would make implementing "undo" situations much easier; one could trigger actions after the Snackbar gets dismisses in case the undo (action) button was not clicked (like triggering an actual delete operation).
Thanks!
If you add this feature, please also add a method parameter to the onDismiss callback that tells whether the action button was clicked or not (even though there is already an action listener). This would make implementing "undo" situations much easier; one could trigger actions after the Snackbar gets dismisses in case the undo (action) button was not clicked (like triggering an actual delete operation).
Thanks!
al...@android.com <al...@android.com>
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #4
[Comment deleted]
ch...@google.com <ch...@google.com> #5
[Comment deleted]
an...@gmail.com <an...@gmail.com> #6
It seems the 22.2.1 does not include the fix for this issue.
I can see the Callback class and the setCallback() setter in the "android MNC" source directory, but is not into the 22.2.1 release.
I can see the Callback class and the setCallback() setter in the "android MNC" source directory, but is not into the 22.2.1 release.
ch...@google.com <ch...@google.com> #7
You're right. It didn't make it into 22.2.1. Will be in the next release (probably 23).
ea...@gmail.com <ea...@gmail.com> #8
It would also be good to include functionality to disable auto hide on action click so it will be possible to reuse the snackbar for further undo actions (slide to dismiss, click undo undo's last delete, click undo again undo's previous delete etc).
PS. It's a widget, please make it extendable.
PS. It's a widget, please make it extendable.
ch...@google.com <ch...@google.com> #9
That is not what Snackbars are for, you should show consecutive Snackbars instead.
P.P.S. It's not a widget. The current implementation has been done this way for a reason.
P.P.S. It's not a widget. The current implementation has been done this way for a reason.
ch...@google.com <ch...@google.com> #11
Released in the v23 support libs
Description
I've just started to update my app to use Snackbars and I'm now in a situation where I need an onDismissListener on the Snackbar that fires if the Snackbar is dismissed (by user or timeout doesn't matter).
I've seen such listeners in many UI parts so is there a reason why it's not included in Snackbar?
Thanks for your answer & best regards,
Jan