Make Beautiful Toast In Android In Just 1 Minute

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


One response to “Make Beautiful Toast In Android In Just 1 Minute”

Leave a Reply

Your email address will not be published. Required fields are marked *