Fancy-Toast

Additional

Language
Java
Version
1.3.2 (May 6, 2021)
Created
Nov 11, 2020
Updated
May 6, 2021 (Retired)
Owner
Siddharth Shakya (sidrxd)
Contributor
Siddharth Shakya (sidrxd)
1
Activity
Badge
Generate
Download
Source code

Advertisement

Fancy-Toast-by-soEpic

Toasts on Steroids. Have Fun

Step 1. Add the JitPack repository to your build file

gradle :-

Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

dependencies {
         implementation 'com.github.sidrxd:Fancy-Toast:1.3'
}

Usage:

    new FancyToast()
            .with(this)   // context
            .setGravity(Gravity.BOTTOM,0,100)  // gravity of FancyToast
            .setIcon(R.drawable.ic_round_group_work_24)  // set custom icon resource
            .setText("Showing Show") // set text for FancyToast
            .cornerRadius(16) // corner radius of FancyToast view
 .hideIcon(false) // show/hide icon
            .show();  // finally show the FancyToast
 
  //You can add background color and text color using setBackground and setTextColor respectively