This repository has been archived by the owner on Mar 8, 2020. It is now read-only.
Releases: lordcodes/SnackbarBuilder
Releases · lordcodes/SnackbarBuilder
v0.9.0
Changes
- SnackbarBuilder will no longer set any default colours for the message and the action. The only way these colours will change from the Snackbar's defaults are through you providing theme attributes or calling the builder methods.
API Changes
- Updated SnackbarBuilder to set case of action text using method matching TextView. On API 14 and above action is all caps by default, by passing false to this method the action will use the case of the string you set.
lowercaseAction
->actionAllCaps(false)
- Updated SnackbarWrapper to set case of action text using single method (matching TextView).
setLowercaseActionText
->setAllCapsActionText(false)
setUppercaseActionText
->setAllCapsActionText(true)
- Added
SnackbarWrapper.addCallbacks
to specify a list of callbacks. - Fixed the icon margin setters in SnackbarWrapper
setIconMarginPixels
->setIconMargin
setIconMargin
->setIconMarginRes
Dependencies
- Updated Android support library to v25.4.0
v0.8.0
Fixes
- Icon support fixed after changes in support library.
Features
SnackbarWrapper.removeCallback
has been added.- Default icon margin can be set through theme attribute.
- Actions can be forced to lowercase by default through a theme attribute.
API Changes
- You can no longer set start and end icon margin. Instead you can just set margin between the icon and Snackbar message. This is set with either
iconMargin
oriconMarginRes
onSnackbarBuilder
. - Icon now has to be implemented using compound drawable on a TextView, which means AppCompat vector drawables no longer supported - until they are supported by AppCompat.
SnackbarCombinedCallback
removed as its no longer needed now that multiple callbacks can be added to a Snackbar.SnackbarWrapper.setCallback
->SnackbarWrapper.addCallback
assetCallback
was deprecated on the Snackbar class.
Dependencies
- Updated Android support library to v25.3.0
v0.7.0
Fixes
- 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.
Dependencies
- Updated to target API 25
- Updated Android support library to v25.0.0
v0.6.0
Features
- 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
.
API Changes
SnackbarBuilder.iconMarginStartPixels
->iconMarginStart
SnackbarBuilder.iconMarginStart
->iconMarginStartRes
SnackbarBuilder.iconMarginEndPixels
->iconMarginEnd
SnackbarBuilder.iconMarginEnd
->iconMarginEndRes
Improvements
- Removed logging from
SnackbarCallback
. - Added code quality checks: CheckStyle, FindBugs and PMD.
- Reformatted whole project code style.
- Improved JavaDocs.
Dependencies
- Updated to target API 24
- Updated Android support library to v24.1.1
v0.5.0
Features
- 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.
API Changes
- 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.
Improvements
- Added JavaDoc comments to the full public API.
- Added more samples.
v0.4
v0.3
v0.2
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.