Skip to content

Releases: nispok/snackbar

Bug fixing + resources refactor

20 Dec 22:39
Compare
Choose a tag to compare
  • Added "sb__" prefix to all resources that were missing it
  • Fixed NPE when attempting to recycle the velocity tracker used when swiping (#49)

SnackbarManager

18 Dec 04:14
Compare
Choose a tag to compare

A SnackbarManager is now included with the lib to handle multiple Snackbar messages. See the updated README for usage

Add bottom margin if content is fitting system UI

18 Dec 02:06
Compare
Choose a tag to compare

Snackbars were not being properly shown with transparent nav bars (KitKat and up). See #41

Bug fixes

08 Dec 20:12
Compare
Choose a tag to compare
  • Fixed issue where onDismiss() did not get called if Snackbar is swiped #38
  • Removed deprecated animation duration getter. Use animation resource getters instead #39

Getters for animation resources

08 Dec 14:07
Compare
Choose a tag to compare

Included static getters for animation resources. In that way, clients can apply the same animation or if the exact same animation does not work depending on the use case, they can query the specific fields they need.

The getters are Snackbar.getInAnimationResource() and Snackbar.getOutAnimationResource().
The getter getAnimationDuration() has now been deprecated. You should query that directly from the resource

EventListener extended

07 Dec 19:07
Compare
Choose a tag to compare
  • EventListener now has two new events: onShown() and onDismissed(). This way you have control over the whole animation cycle. Note that now each event will receive the Snackbar instance instead of just the height, so you will have to modify your code if updating from a previous version
  • Fixed the min/max width and offset for the tablet layout
  • Removed bold style from action button

Support for APIs >= Froyo

04 Dec 02:28
Compare
Choose a tag to compare

The minSDK version of the library has been lowered to 8.

Note that any apps running on APIs < 11 will not have the swipe-to-dismiss functionality. Enabling it explicitly won't have any effect.

Snackbar is always brought as parent's top view

03 Dec 01:06
Compare
Choose a tag to compare

Tablet support

25 Nov 00:16
Compare
Choose a tag to compare
  • Reintroduced tablet support, initially introduced with #7. When Inbox was released, the Snackbars used in there did not follow the specs from the guidelines for tablets, so the initial implementation was dropped
  • Single-line snackbars are now 48dp tall as specified in the guidelines. The padding was left a bit different, however: 14dp at the top and 14dp at the bottom vs 16dp/12dp in the specs

Support for setColor(@resId) methods

24 Nov 21:51
Compare
Choose a tag to compare