Custom Toast Library by Google Developer Student Club University of Brawijaya

Overview

platform License jitpack

GDSCToast

Custom Toast Library by Google Developer Student Club University of Brawijaya

Prerequisites

  • For old version of gradle (before arctic fox update)

    Add this in your root build.gradle file (project scope)

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}
  • For gradle version 7 or latest

    Add this in your root setting.gradle file

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Dependency

Add this to your module's build.gradle file :

dependencies {
	...
	implementation 'com.github.KylixEza:GDSCToast:version'
}

you can check the version on jitpack badge above or on release tag

Usage

Each function start with 'make...' like makeNomralToast always returns a Toast object, so you can customize your own Toast. But if you just want to show the toast without any customization, you can use function that start with 'show...' like showNormalToast

  • To display a normal Toast:
GDSCToast.makeNormalToast(this@MainActivity, "This is a normal toast", Toast.LENGTH_LONG, true).show()
GDSCToast.showNormalToast(this@MainActivity, "This is a normal toast", Toast.LENGTH_LONG, true)
  • To display a success Toast:
GDSCToast.makeSuccessToast(this@MainActivity, "This is a success toast", Toast.LENGTH_LONG, true).show()
GDSCToast.showSuccessToast(this@MainActivity, "This is a success toast", Toast.LENGTH_LONG, true)
  • To display an error Toast:
GDSCToast.makeErrorToast(this@MainActivity, "This is an error toast", Toast.LENGTH_LONG, true).show()
GDSCToast.showErrorToast(this@MainActivity, "This is an error toast", Toast.LENGTH_LONG, true)
  • To display an warning Toast:
GDSCToast.makeWarningToast(this@MainActivity, "This is a warning toast", Toast.LENGTH_LONG, true).show()
GDSCToast.showWarningToast(this@MainActivity, "This is a warning toast", Toast.LENGTH_LONG, true)
  • To display an info Toast:
GDSCToast.makeInfoToast(this@MainActivity, "This is an info toast", Toast.LENGTH_LONG, true).show()
GDSCToast.showInfoToast(this@MainActivity, "This is an info toast", Toast.LENGTH_LONG, true)

Preview

Contributing

Please fork this repository and contribute back using pull requests.

Any contributions, large or small, major features, bug fixes, are welcomed and appreciated but will be thoroughly reviewed .

Contact

kylix-eza-saputra-1bb1b7192 k_ylix #Kylix3272

Don't forget to this repository to motivates me to share more open source library

You might also like...
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

In-layout notifications. Based on Toast notifications and article by Cyril Mottier (http://android.cyrilmottier.com/?p=773).
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

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

Android Toast For RTL Applications
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

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

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

Android library to create customizable floating animated toasts like in Clash Royale app

FloatingToast-Android An android library to make customisable floating animated toasts Getting Started In your build.gradle dependencies { impleme

A tooltip/showcase library for Android re-written in Kotlin.

UglyTooltip Based on another Showcase library. Being kotlinized, customized and refactored.

Releases(1.2.2)
  • 1.2.2(May 4, 2022)

    [UPDATE] 1.2.2:

    • GDSCToast now support with context extension in every functions
    • Change the naming convention of some functions that use "make..." to "build..."
    • Add default value of duration argument (Toast.LENGTH_SHORT) in some standard functions that don't need to use GDSCToastConfig.kt
    Source code(tar.gz)
    Source code(zip)
  • 1.2.1(Feb 1, 2022)

  • 1.2.0(Jan 6, 2022)

    [UPDATE] 1.2.0:

    • Added configuration setting (configOn) to handle configuration of GDSCToast
    • Added toast shape (this can be only used by using configuration function) to handle the shape of toast
    • Added toast type to handle the type of toast
    Source code(tar.gz)
    Source code(zip)
  • 1.1.1(Dec 18, 2021)

    • change success and error toast icons to reduce ambiguity
      • success -> check icon with a white circle around
      • error -> cancel icon with a white circle around
    • Update preview section at Readme
    Source code(tar.gz)
    Source code(zip)
  • 1.1.0(Dec 10, 2021)

    • Change the base color of normal toast (from white with a black border to gray without border)
    • Add documentation
    • Add show function as a shortcut to show a toast
    • Fix some function name convention
    • Update README.md on Github
    Source code(tar.gz)
    Source code(zip)
  • 1.0.5(Dec 8, 2021)

    Version 1.0.5:

    • Android Toast with customizing shape on the layout
    • Officially made by learning development android Google Developer Student Club University of Brawijaya
    • Customize color on some conditions like normal, success, error, etc.
    Source code(tar.gz)
    Source code(zip)
  • 1.0.3(Dec 8, 2021)

  • 1.0.2(Dec 8, 2021)

  • 1.0.1(Dec 8, 2021)

  • 1.0.0(Dec 8, 2021)

Owner
Kylix Eza S
Kotlin & Android Enthusiast | Google DSC Core Team University of Brawijaya
Kylix Eza S
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
Android Custom Toast

Super Toast Library Written Purely in Kotlin ❤️ Usual Toast but with super powers!!! ?? A Fully Customised and Customisable Toast. ]( https://android-

null 26 Dec 27, 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
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
🍞 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
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

Dean Spencer 11 Feb 14, 2022
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

null 9 Nov 15, 2021
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

Morteza Omar Mohammady 12 Dec 23, 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