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

Do you like socialcodia's articles? Follow on social!
People reacted to this story.
Show comments Hide comments
Comments to: Make Beautiful Toast In Android In Just 1 Minute

Write a response

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

Attach images - Only PNG, JPG, JPEG and GIF are supported.

Good Reads




Welcome to Social Codia

Learn Secret Of Social Media
Join Social Codia