Show success, warning, or error banners at the top of your Android app screen instead of basic Toasts.
Add a countdown progress bar to a notification that auto-dismisses after a set number of seconds.
Replace all Toast messages in an Android project with branded, tappable alerts using custom colors and icons.
Trigger a custom action or navigate to a screen when the user taps a notification banner.
Add a few lines to build.gradle and call show() in a method chain, no API keys or external services needed.
Alerter is an Android library written in Kotlin that gives app developers a better way to show notifications to users inside their app. Standard Android provides two built-in options for brief messages: Toasts (small pop-up bubbles at the bottom of the screen) and Snackbars (bars that also appear at the bottom). Both have limited customization. Alerter adds a third option: a banner that slides in from the top of the screen and overlays all other content. Adding it to an Android project takes just a few lines in the project's build files. Once installed, you display an alert with a short chain of method calls: create an alert, set a title and text, then call show. The alert dismisses itself after a set amount of time. The library offers a range of customization options. You can change the background color, swap in a custom icon, control how long the alert stays on screen, add a click listener that runs when the user taps it, or include action buttons. Text can be short or long, and the alert resizes itself to fit. You can also enable a progress bar that fills as the timer counts down, or let users swipe the alert away to dismiss it. For more advanced use, you can pass in a completely custom layout, replacing the default design with your own. The library also provides callbacks that fire when an alert appears or disappears, so you can chain other actions to those moments. Alerter is open-source under the MIT license, meaning you can use it in any project, including commercial ones, as long as you keep the copyright notice.
← tapadoo on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.