In this tutorial I am using an android library to make a beautiful toast.
Copy this dependency paste it into gradle file of your project, the sync the project.
dependencies {
compile 'com.sdsmdg.tastytoast:tastytoast:0.1.1'
}
All you have to fire this code to show the beautiful toast in your app.
TastyToast.makeText(getApplicationContext(), "Hello World !", TastyToast.LENGTH_LONG, TastyToast.WARNING);
The TastyToast.makeText() Except Only 4 Parameters.
- Application Context
- Toast Message
- Toast Length
- Toast Type
Nice Post