Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doublemine/agiletoast
A powerful toast.
https://github.com/doublemine/agiletoast
android kotlin-android toast widget-library
Last synced: 13 days ago
JSON representation
A powerful toast.
- Host: GitHub
- URL: https://github.com/doublemine/agiletoast
- Owner: Doublemine
- License: apache-2.0
- Created: 2017-02-08T09:47:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T13:01:09.000Z (over 7 years ago)
- Last Synced: 2024-10-25T03:56:23.722Z (2 months ago)
- Topics: android, kotlin-android, toast, widget-library
- Language: Kotlin
- Homepage:
- Size: 880 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### AgileToast
A simple and more powerful Toast. [![](https://jitpack.io/v/Doublemine/AgileToast.svg)](https://jitpack.io/#Doublemine/AgileToast)
![](art/normal.gif)
![](art/fill.gif)
![](art/corner.gif)
![](art/info.gif)
![](art/success.gif)
![](art/error.gif)### import
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
``````
dependencies {
compile 'com.github.Doublemine:AgileToast:1.0.2'
}
```### Usage
The base usage:
```java
AgileToast.Companion.build(MainActivity.this)
.text("Some message.")
.show();
```Advance usage:
```java
AgileToast.Companion.build(MainActivity.this)
.type(ToastType.NORMAL)
.text("AgileToast send msg...")
.animation(AnimationType.DRAWER_BOTTOM)
.duration(Duration.CUSTOM, 1000L)
.style(ToastStyle.FILL)
.gravity(Gravity.CENTER | Gravity.BOTTOM)
.offsetY(200)
.dismissCallback(MainActivity.this)
.bgColor(ResourcesCompat.getColor(getResources(), R.color.colorAccent, null))
.show();
```see the source code of demo to learn more advance usage.