The Android Arsenal – Toasts

0
6

Quickest way to show a toast in android!

Add it in your root build.gradle :

allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }

Add the dependency:

dependencies {
         implementation 'com.github.meet30997:Quicktoast:1.0.0'
 }

Create a object of library class

private Quicktoast toast = new Quicktoast(this);

There are three types of toast that you can use.

  1. toast.ltoast("Simple"); // For Simple Long Toast
  2. toast.stoast("Simple"); // For Simple Short Toast

  1. toast.lwarn("Warning"); // For Warning Long Toast
  2. toast.swarn("Warning"); // For Warning Short Toast

  1. toast.linfo("Info"); // For Info Long Toast
  2. toast.sinfo("info"); // For Info Short Toast
  1. Fork the project. ❤️
  2. Make required changes and commit.
  3. Generate pull request. Mention all the required description regarding changes you made. Happy coding.:-)

This Project is licensed under MIT license. View license.

LEAVE A REPLY

Please enter your comment!
Please enter your name here