How to Create Custom Toast in Android

First will implement Custom Toast using method 1

Next will implement Custom Toast using method 2

allprojects {
repositories {

maven { url “https://jitpack.io" }
}
}
dependencies {
...
implementation 'com.github.GrenderG:Toasty:1.5.0'
}
Toasty.success(getApplicationContext(),"This is success toast",Toast.LENGTH_LONG).show();// or Toasty.error(getApplicationContext(),"This is error toast",Toast.LENGTH_LONG).show();

--

--

--

Android Developer || Web Developer || Software Engineering

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Use Retrofit for Networking in Android for Beginners

Step By Step Guide To Build Document Scanner Android App.

Publishing to the Google Play Store

Open Flutter module from Android App

The impact of lockdown on mobile gamers behaviors

Custom tooling for the test stack management

Part 1: Kotlin Coroutines for Beginners

Android RecyclerView And DataBinding with Kotlin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ahmed Basalib

Ahmed Basalib

Android Developer || Web Developer || Software Engineering

More from Medium

Google developers course: Android basics in Kotlin (Part 5 Theme)

Push notifications on Android, How They Always Get Delivered

Push notifications on Android — How they always get delivered

APK vs Android App Bundle

Android Bundle Error in PlayStore.