ToastJam is a dependency for showing beautiful toast messages with custom shapes and colors. ToastJam lets you to simply customize messages showing in your app and make them look native and more belonging to your app rather than same boring default one.
For gradle:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
For maven:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
For gradle:
dependencies {
implementation 'com.github.Ahlam-m:ToastJam:v2.0.0'
}
For maven:
<dependency>
<groupId>com.github.Ahlam-m</groupId>
<artifactId>ToastJam</artifactId>
<version>v2.0.0</version>
</dependency>
Basic example:
ToastJam.setup(this, "Hi there !").start();
Full example with all available features:
ToastJam.setup(this, "Hi there !")
.setGravity(TGravity.BOTTOM)
.setShape(TShape.ELLIPSE)
.setTextColor(ContextCompat.getColor(this, R.color.text_color))
.setColor(ContextCompat.getColor(this, R.color.background_color))
.setDurationInSec(2)
.start();
Submit any issues here: ToastJam Issues
If you have an experience using ToastJam, please feel free to share it with us through this form: ToastJam Feedback Form Any suggestions are welcome.
Licensed under the Apache License, Version 2.0
Reference: http://www.apache.org/licenses/LICENSE-2.0