Skip to content

Ahlam-m/ToastJam

Repository files navigation

ToastJam Android Dependency

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.

Screenshots

How to integrate ToastJam into your project?

1) Add the JitPack repository to the bottom of root build.gradle:

For gradle:

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}

For maven:

<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
</repositories>
2) Add the following dependency to the project level build.gradle:

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>

Usage

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();

Issues

Submit any issues here: ToastJam Issues

Feedback

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.

License

Licensed under the Apache License, Version 2.0
Reference: http://www.apache.org/licenses/LICENSE-2.0