[ARCHIVED] Builder pattern for support library Snackbars, that makes them easier to customise and use
lowercaseAction
-> actionAllCaps(false)
setLowercaseActionText
-> setAllCapsActionText(false)
setUppercaseActionText
-> setAllCapsActionText(true)
SnackbarWrapper.addCallbacks
to specify a list of callbacks.setIconMarginPixels
-> setIconMargin
setIconMargin
-> setIconMarginRes
SnackbarWrapper.removeCallback
has been added.iconMargin
or iconMarginRes
on SnackbarBuilder
.SnackbarCombinedCallback
removed as its no longer needed now that multiple callbacks can be added to a Snackbar.SnackbarWrapper.setCallback
-> SnackbarWrapper.addCallback
as setCallback
was deprecated on the Snackbar class.SnackbarParentFinder
, which is used to look for a parent view to attach to - allowing fallback parent views when one is not found.SnackbarShowCallback
and SnackbarSwipeDismissCallback
.SnackbarBuilder.iconMarginStartPixels
-> iconMarginStart
SnackbarBuilder.iconMarginStart
-> iconMarginStartRes
SnackbarBuilder.iconMarginEndPixels
-> iconMarginEnd
SnackbarBuilder.iconMarginEnd
-> iconMarginEndRes
SnackbarCallback
.Snackbar
messages. Each of these appended messages can have a different colour specified.Snackbar
.SnackbarWrapper
, to allow you to customise the Snackbar
after it has been created.String
now take a CharSequence
, so will honour any spans that have been applied already.snackbarBuilderStyle
and toastBuilderStyle
. This cleans up your theme and is a bit easier as you can extend the built-in SnackbarBuilder
style.ToastBuilder
to be within the snackbarbuilder
package, to ensure the whole library is within a single base package.This is the first usable version of the library.
It is working and is fully covered with tests. The reason for the v0.2, is just to make sure it has all the features that will be required by real projects. Once it has been used by some projects and any required features are added, a version 1 will be released.