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




Fatal error: Uncaught Error: Class 'Elementor\Scheme_Typography' not found in /home/socia106/domains/ Stack trace: #0 /home/socia106/domains/ Seventhqueen\Typer\Onboarding->_register_controls() #1 /home/socia106/domains/ Elementor\Controls_Stack->init_controls() #2 /home/socia106/domains/ Elementor\Controls_Stack->get_stack() #3 /home/socia106/domains/ Elementor\Widget_Base->get_stack() #4 /home/socia106/domains/ Elementor\Controls_Stack->get_controls() #5 /home/soci in /home/socia106/domains/ on line 250