Skip to content

2.8.0

Compare
Choose a tag to compare
@wmora wmora released this 08 Feb 18:09
· 108 commits to master since this release
  • A Snackbar's action button can only be tapped once by default. If you really need the action button to be tapped multiple times (can't think of an scenario where you would want this) you have to set explicitly set this behavior
Snackbar.with(context).allowMultipleActionClicks(true);
  • A method isActionClicked() is now provided to let you know if the action button was tapped. This is useful if you want to know during the Snackbar dimissal if it's being dismissed because the action was tapped or just ran out of time. See #73
  • The EventListener has been extended with a couple of calls: onShowByReplace and onDismissByReplace. This is useful if you need to NOT move a Floating Action Button down and up while the Snackbar is just being replaced, but still wanted to move up and down on regular show/dismiss callbacks. See #79
  • Support for translucent navigation bar. For translucent navigation bars, their height size is added in the Snackbar's bottom padding. The sample app illustrates this
  • A bug has been fixed when the configured color for either the background, text, or action text was white. Prior to this version, the color code #ffffffff was always ignored. See #67 and this SO question