CookieBar2
CookieBar is a lightweight library for showing a brief message at the top or bottom of the screen.
Main differences from the original Cookiebar are:
- Swipe to dismiss has been added.
- Programmatic dismiss functionality added.
- Only one Cookie can be displayed at a time (New top cookie will dismiss the current top one if exists).
- Message view captures clicks, blocks downward propagation.
- Slightly different build interface.
- Icon animator support.
- Custom layout can be applied to a cookie.
- Colors presets added.
- Removed supportRtl / allowBackup from library scope (Should be set at app level).
Screenshot
Create a simple cookie
Cookie with an icon and an action
Programmatically dismiss cookies currently being displayed
Create a cookie with a custom layout
Change default cookie style by setting theme attributes
Dynamically set cookie style
- layoutGravity
- backgroundColor
- titleColor
- messageColor
- actionColor
- duration