https://github.com/mhashim6/snackbarqueue
A Library (a function, really) to show multiple snackbars sequentially.
https://github.com/mhashim6/snackbarqueue
android kotlin library queue sequential snackbar
Last synced: 4 months ago
JSON representation
A Library (a function, really) to show multiple snackbars sequentially.
- Host: GitHub
- URL: https://github.com/mhashim6/snackbarqueue
- Owner: mhashim6
- License: mit
- Created: 2018-11-22T12:55:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-04T16:43:33.000Z (over 6 years ago)
- Last Synced: 2025-01-15T16:26:32.872Z (about 1 year ago)
- Topics: android, kotlin, library, queue, sequential, snackbar
- Language: Java
- Size: 58.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SnackbarQueue
A Library (a function, really) to show multiple snackbars sequentially.
## Usage:
``` kotlin
Snackbar.make(root, R.string.welcome_message, LENGTH_LONG).enqueue() //first one will immediately show.
Snackbar.make(root, R.string.introduction_message, LENGTH_LONG).enqueue() //but here, magic happens.
Snackbar.make(root, R.string.preferences_tutorial, LENGTH_LONG).enqueue()
Snackbar.make(root, R.string.goodbye_tutorial, LENGTH_LONG).enqueue() //last one to show, after all the others have been sequentially (and gracefully) dismissed.
```
## Apps using this library:
- [Put Back: The laid back reminder](https://play.google.com/store/apps/details?id=mhashim6.android.putback)
## Dependency:
[](https://jitpack.io/#mhashim6/SnackbarQueue)
Add it in your root build.gradle at the end of repositories:
``` groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
Add the dependency:
``` groovy
dependencies {
implementation 'com.github.mhashim6:SnackbarQueue:1.3'
}
```