Android Custom Toast

Overview

Super Toast Library

Written Purely in Kotlin ❤️

Usual Toast but with super powers!!! 💪

A Fully Customised and Customisable Toast.

Android Arsenal]( https://android-arsenal.com/details/1/7328 )

Type Output
Success Alt text
Warning Alt text
Error Alt text
Information Alt text
Default Alt text

Gradle Dependencies

Please do check release notes for latest version.

      implementation 'com.github.akhilbv1:CustomToastLibrary:v1.0.2'

Add Jitpack to repositories in Project level Build.Gradle

repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }

How To Call

 CustomToast.makeText(this, Toast.LENGTH_SHORT,CustomToast.DEFAULT, "Toast is working",false).show();
Method Paramter Description
makeDefaultToast() Context context,String message Default Toast
makeSuccessToast() Context context,String message,int shouldShowIcon Success Toast with message and icon visibility
makeErrorToast() Context context,String message, int shouldShowIcon Error Toast with message and icon visibility
makeWarningToast() Context context, String message, int shouldShowIcon Warning Toast with message and icon visibility
makeInfoToast() @NonNull Context context, String message, int shouldShowIcon Information Toast with message and icon visibility

How to add Custom Layout

please make sure your Custom Layout Textview id is toastMessage otherwise Exception will be thrown.

    CustomToastView.makeText(this@Sample,Toast.LENGTH_SHORT,"Toast is working",R.layout.toast)

To show your layout without altering

    CustomToastView.makeText(this@Sample,Toast.LENGTH_SHORT,R.layout.toast)

If direct call to makeText is popping any error then please use CustomToatView.build (name of companion object)

Future Release Points

  • Add Animations

All commits are welcomed!!

You might also like...
Attractive, stylish and customizable toast library for Android.

FabToast min SDK 16 (Jelly Bean 4.1) written in Java To download the demo app for this library from Google Playstore so you can see it in action, clic

Customizable toast message library for Android
Customizable toast message library for Android

Android Custom Toast Message (SnToast) Customizable Toast Message Library For Android Add this in your root build.gradle file allprojects { reposito

The usual Toast, but with steroids 💪
The usual Toast, but with steroids 💪

Toasty The usual Toast, but with steroids. Prerequisites Add this in your root build.gradle file (not your module build.gradle file): allprojects { r

Simple toast

newlibrary Simple toast Step 1. Add the JitPack repository to your build file allprojects { repositories { ... maven { url 'https://jitpack.io

 An easy, flexible way to have the toast message displayed.
An easy, flexible way to have the toast message displayed.

IToaster Library An easy, flexible way to have the toast message displayed. Download Gradle Add below codes to your root build.gradle file (not your m

MDToast - MaterialDesign Toast library written with Kotlin with lots of extensions to interact easily in contexts
MDToast - MaterialDesign Toast library written with Kotlin with lots of extensions to interact easily in contexts

MDToast - MaterialDesign Toast A lightweight Toast library written with Kotlin i

Custom toasts with color and icon for Android.
Custom toasts with color and icon for Android.

Dynamic Toasts A simple library to display themed toasts with icon and text on Android 2.3 (API 9) and above devices. Since v0.4.0, it uses 26.x.x sup

An android library for easy implementation of Toasts in Android with easy customisation.
An android library for easy implementation of Toasts in Android with easy customisation.

ToastTypeDecore ©️ A library for easy implementation of Toasts in Android with easy customisation. Latest Version : v2.1 Screenshots Success Toast1 Su

Context sensitive notifications for Android
Context sensitive notifications for Android

Crouton Context sensitive notifications for Android DEPRECATION NOTICE This library has passed it's prime and is now considered deprecated. With the A

Comments
  • Resolving Error

    Resolving Error

    I tried to implement this library in one of my project but it show below error

    Failed to resolve: com.github.akhilbv1:CustomToastLibrary:Tag
    Show in File
    Show in Project Structure dialog
    

    I also added jitpack to my project but still it shows the error...

    opened by protoncluster 1
  • Request: support Android 11 (R - API 31)

    Request: support Android 11 (R - API 31)

    Sadly on Android R, you can't set a custom View for a Toast (when targeting API 31) :

    https://developer.android.com/reference/android/widget/Toast#setView(android.view.View) https://developer.android.com/reference/android/widget/Toast#getView()

    Please offer something that mimics the standard Toast's look&feel, so that at least we could have it shown within the app, as a normal View. Maybe something similar to what we have when we long press the action items on the toolbar:

    dfu6CwFaPM.zip

    Custom Toasts are useful anyway usually only when the user is inside the app...

    opened by AndroidDeveloperLB 0
Releases(v1.0.2)
Owner
null
A really simple library that help you to display a custom toast with many colors (for : success, warning, danger, info, dark, light, primary...etc ), or with rounded corners, or event with image.

CoolToast A really simple library that help you to display a custom toast with many colors (for : success, warning, danger, info, dark, light, primary

null 21 Dec 20, 2022
Custom Toast Library by Google Developer Student Club University of Brawijaya

GDSCToast Custom Toast Library by Google Developer Student Club University of Brawijaya Prerequisites For old version of gradle (before arctic fox upd

Kylix Eza S 6 Sep 15, 2022
This custom snack bar will help you display much more personalized app toast

?? Presentation Using the native android class of snack bar. This custom snack bar will help you display much more personalized app

Xavi 4 Dec 8, 2022
Android : IamToast Another Toast library for Android

Android : IamToast Another Toast library for Android Warning. toast custom view is deprecated since android 11(R) Setup allprojects { repositories

null 2 Jun 12, 2022
A library that extends the Android toast framework.

SuperToasts Library The SuperToasts library enhances and builds upon the Android Toast class. This library includes support for context sensitive Supe

John Persano 2.7k Dec 29, 2022
In-layout notifications. Based on Toast notifications and article by Cyril Mottier (http://android.cyrilmottier.com/?p=773).

Android AppMsg (Crouton) Library Implementation of in-layout notifications. Based on Toast notifications and article The making of Prixing #4: in-layo

Evgeny Shishkin 1.4k Nov 25, 2022
An Android Toast replacement, similar to the one seen in the GMail app.

MessageBar An Android Toast replacement, similar to the one seen in the GMail app. Multiple messages can be posted in succession, and each message wil

Simon Vig Therkildsen 555 Nov 25, 2022
🍞 The missing toast library for Android.

Literally Toast ?? A toast library for Android. Usage: ?? Use the LitToast to get lit and show your users a proper toast. LitToast.create(context, "My

David Voiss 229 Nov 25, 2022
Toastie is a customizable Android toast library.

Toastie Getting Started Gradle Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories: Note

Burak Fidan 36 Apr 3, 2021
Android Toast For RTL Applications

RTL-Toast Android library to show Toasts in a pretty RTL way Install Add it in your root build.gradle allprojects { repositories { ... ma

Arash Hatami 15 Nov 16, 2022