Skip to content

fullpagedeveloper/ToastOrEgg

Repository files navigation

ToastOrEgg

Artboard 1@4x

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

Screen Shot 2020-10-28 at 13 14 45

Screen Shot 2020-10-28 at 13 14 26

Screen Shot 2020-10-28 at 13 14 08

Screen Shot 2020-10-28 at 13 13 50