ToastOrEgg

Additional

Language
Kotlin
Version
1.0 (Oct 28, 2020)
Created
Oct 28, 2020
Updated
Nov 4, 2020
Owner
fullpage_developer (fullpagedevelopers)
Contributor
fullpage_developer (fullpagedevelopers)
1
Activity
Badge
Generate
Download
Source code
APK file

Promotion

ToastOrEgg

Prerequisites

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

Dependency

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

  dependencies {
            implementation 'com.github.fullpagedevelopers:ToastOrEgg:1.0'
    }

Usage

duration: 0 Long

duration: 1 short

original toast by changing the background

toastOrEgg( "Anjayyyyy", 1, R.color.design_default_color_primary_variant)

to toast all attributes

toastOrEgg( "Gokilllll", 0, R.color.black, R.color.white, R.drawable.ic_baseline_lock_24)

for toast do not use color

toastOrEgg( "Gokilllll", 0, null, null, R.drawable.ic_baseline_lock_24)

for toast does not use image

toastOrEgg( "Gokilllll", 0, R.color.black, R.color.white,null)

for fragments you can use an activity

 activity?.toastOrEgg("hahahah", 0, R.color.black, R.color.white, R.drawable.ic_baseline_check_24)

ScreenShoot