Skip to content

lucky93agarwal/LuckyToast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LuckyToast

API

Simple Toast library

Step 1. Add the JitPack repository to your build file

Prerequisites

Add this in your root build.gradle file (not your module build.gradle file):

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

Step 2. Add the dependency

Dependency

Add this to your module's build.gradle file (make sure the version matches the JitPack badge above):

  dependencies {
	        implementation 'com.github.lucky93agarwal:LuckyToast:Tag'
	}

Configuration

This step is optional, but if you want you can configure some Toasty parameters. Place this anywhere in your app:

LuckyToast.simpleToast(context, message, duration);

Example

LuckyToast.simpleToast(MainActivity.this,"Show New Data",1); // required