Use this library to make your boring toasts bit colorful. More methods will be added soon.
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Android Studio 3.0 and above:
dependencies {
implementation 'com.github.evanemran:Toaster:1.1'
}
Android Studio 2.3.* and lower:
dependencies {
compile 'com.github.evanemran:Toaster:1.1'
}
Example:
Toaster toaster = new Toaster(MainActivity.this, "This is a Toast");
toaster.setBackground("#1FAA59");
toaster.setTextColor("#FFFFFF");
toaster.show();