Fancy-Toast

Additional

Language
Java
Version
1.3 (Nov 12, 2020)
Created
Nov 11, 2020
Updated
Nov 12, 2020
Owner
sidrxd
Contributor
sidrxd
1
Activity
Badge
Generate
Download
Source code
APK file

Announcement

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()
        // context
            .with(this) 
 // gravity of FancyToast
            .setGravity(Gravity.BOTTOM,0,100) 
  // set custom icon resource
            .setIcon(R.drawable.ic_round_group_work_24)
  // set text for FancyToast
            .setText("Showing Show")
  // corner radius of FancyToast view
            .cornerRadius(16)
  // show/hide icon
 .hideIcon(false)
  // finally show the FancyToast
            .show();