- Removed marking of public resources, as it was causing all resources in dependenices (such as AppCompat) as private. Will put it back once this problem has been fixed within the build tools.
- Updated to target API 25
- Updated Android support library to v25.0.0
- New constructor that takes a
SnackbarParentFinder
, which is used to look for a parent view to attach to - allowing fallback parent views when one is not found. - Separate callback interfaces rather than needing to override a single class to handle all the different callbacks. E.g.
SnackbarShowCallback
andSnackbarSwipeDismissCallback
.
SnackbarBuilder.iconMarginStartPixels
->iconMarginStart
SnackbarBuilder.iconMarginStart
->iconMarginStartRes
SnackbarBuilder.iconMarginEndPixels
->iconMarginEnd
SnackbarBuilder.iconMarginEnd
->iconMarginEndRes
- Removed logging from
SnackbarCallback
. - Added code quality checks: CheckStyle, FindBugs and PMD.
- Reformatted whole project code style.
- Improved JavaDocs.
- Updated to target API 24
- Updated Android support library to v24.1.1
- Append messages to the end of the main
Snackbar
messages. Each of these appended messages can have a different colour specified. - Add an icon to the
Snackbar
. - Added a
SnackbarWrapper
, to allow you to customise theSnackbar
after it has been created.
- Builder methods which take a
String
now take aCharSequence
, so will honour any spans that have been applied already. - Rather than providing styling through single theme attributes, you assign a whole style to the theme attributes
snackbarBuilderStyle
andtoastBuilderStyle
. This cleans up your theme and is a bit easier as you can extend the built-inSnackbarBuilder
style. - Moved the
ToastBuilder
to be within thesnackbarbuilder
package, to ensure the whole library is within a single base package.
- Added JavaDoc comments to the full public API.
- Added more samples.
- Added ToastBuilder for display Toast messages
- Added SnackbarCallbackWrapper for more control over your callbacks and to easily wrap existing callbacks
- Specify custom Snackbar duration through a global theme attribute
- Updated dependencies
- Fix problems that were caused by using ThemeUtils class
- First usable version of the library.
- It is working and is fully covered with tests.
- Contains a builder pattern to create and show Snackbars.