Magic Toast

General

Category
Free
Tag
Toasts
License
N/A
Min SDK
8 (Android 2.2–2.2.3 Froyo)
Registered
Jun 23, 2016
Favorites
4
Link
https://github.com/mikekpl/magic-toast
See also
FBToast
Message Toast
Toasty
Pretty Toast
SimpleToast

Additional

Language
Java
Version
0.0.2 (Jun 22, 2016)
Created
Jun 22, 2016
Updated
Oct 23, 2018 (Retired)
Owner
Mike Lau (mikekpl)
Contributor
Mike Lau (mikekpl)
1
Activity
Badge
Generate
Download
Source code

Magic Toast

A Simple and Colorful alternative to showing Toasts.

Getting Started

Make sure to have Android Studio

Gradle

repositories {
    maven { url "https://jitpack.io" }
}
implementation 'com.github.ekimual:magic-toast:0.0.2'

Usage

//Different Kinds of Toast
MagicToast.showSuccess(getApplicationContext(), "HELLO WORLD");
MagicToast.showError(getApplicationContext(), "HELLO WORLD");
MagicToast.showInfo(getApplicationContext(), "HELLO WORLD");
MagicToast.showWarning(getApplicationContext(), "HELLO WORLD");
MagicToast.showDim(getApplicationContext(), "HELLO WORLD");

//Shows Toast for 2 seconds
MagicToast.showSuccess(getApplicationContext(), "HELLO WORLD", 2);

License

The MIT License (MIT)

Copyright (c) 2016 Mike Lau

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.