• Stars
    star
    1,320
  • Rank 35,625 (Top 0.8 %)
  • Language
    Kotlin
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🌈 A Beautiful Motion Toast Library for Kotlin Android

Motion Toast - A Beautiful Toast Library for Android Kotlin 🤩🔥

platform API GitHub license GitHub stars GitHub forks Repo size GitHub follow Twitter Follow

A Beautiful Multipurpose Motion Toast Library in Android using Kotlin 😍

GitHub Cards Preview

Preview - Motion Toast 🌟

gif

Preview - Color Motion Toast 🌈

gif

Preview - Dark Toast 🌈

gif

Preview - Dark Color Toast 🌈

gif

Types of Toast Style ❤️

1. Motion Toast 2. Color Motion Toast 3. Dark Toast 4. Dark Color Toast

About

A Beautiful Multipurpose Motion Toast Library in Android using Kotlin.

Dependency Project Level

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Dependency App Level

Add dependency in your app module

	dependencies {
	        implementation 'com.github.Spikeysanju:MotionToast:1.4' 
	}

Five Toast Types 🖐🏼

        1. TOAST_SUCCESS
        2. TOAST_ERROR
        3. TOAST_WARNING
        4. TOAST_INFO
        5. TOAST_DELETE

Toast Duration ⌛️

        1. LONG_DURATION // 4 Seconds
        2. SHORT_DURATION // 2 Seconds
       

Usage

Sample Code for - Motion Toast 🌟

Success Toast

 MotionToast.createToast(this,
 		"Hurray success 😍"
 		"Upload Completed successfully!",
                MotionToastStyle.SUCCESS,
                MotionToast.GRAVITY_BOTTOM,
                MotionToast.LONG_DURATION,
                ResourcesCompat.getFont(this,R.font.helvetica_regular))
                

Error Toast

 MotionToast.createToast(this,
 		    "Failed ☹️"
 		    "Profile Update Failed!",
                    MotionToastStyle.ERROR,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Warning Toast

MotionToast.createToast(this,"Please fill all the details!",
                    MotionToastStyle.WARNING,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

        

Info Toast

       MotionToast.createToast(this,"This is information toast!",
                    MotionToastStyle.INFO,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Delete Toast

       MotionToast.createToast(this,"Delete all history!",
                    MotionToastStyle.DELETE,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Sample Code for - Color Motion Toast 🌈

Success Toast

 MotionToast.createColorToast(this,"Upload Completed!",
                MotionToastStyle.SUCCESS,
                MotionToast.GRAVITY_BOTTOM,
                MotionToast.LONG_DURATION,
                ResourcesCompat.getFont(this,R.font.helvetica_regular))
                

Error Toast

 MotionToast.createColorToast(this,"Profile Update Failed!",
                    MotionToastStyle.ERROR,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Warning Toast

MotionToast.createColorToast(this,"Please fill all the details!",
                    MotionToastStyle.WARNING,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

        

Info Toast

       MotionToast.createColorToast(this,"This is information toast!",
                    MotionToastStyle.INFO,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Delete Toast

       MotionToast.createColorToast(this,"Delete all history!",
                    MotionToastStyle.DELETE,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Sample Code for - Dark Toast 🌚🖤

Success Toast

 MotionToast.darkToast(this,"Upload Completed!",
                MotionToastStyle.SUCCESS,
                MotionToast.GRAVITY_BOTTOM,
                MotionToast.LONG_DURATION,
                ResourcesCompat.getFont(this,R.font.helvetica_regular))
                

Error Toast

 MotionToast.darkToast(this,"Profile Update Failed!",
                    MotionToastStyle.ERROR,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Warning Toast

MotionToast.darkToast(this,"Please fill all the details!",
                    MotionToastStyle.WARNING,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

        

Info Toast

       MotionToast.darkToast(this,"This is information toast!",
                    MotionToastStyle.INFO,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Delete Toast

       MotionToast.darkToast(this,"Delete all history!",
                    MotionToastStyle.DELETE,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Sample Code for - Dark Color Toast 🌚🖤🌈

Success Toast

 MotionToast.darkColorToast(this,"Upload Completed!",
                MotionToastStyle.SUCCESS,
                MotionToast.GRAVITY_BOTTOM,
                MotionToast.LONG_DURATION,
                ResourcesCompat.getFont(this,R.font.helvetica_regular))
                

Error Toast

 MotionToast.darkColorToast(this,"Profile Update Failed!",
                    MotionToastStyle.ERROR,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Warning Toast

MotionToast.darkColorToast(this,"Please fill all the details!",
                    MotionToastStyle.WARNING,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

        

Info Toast

       MotionToast.darkColorToast(this,"This is information toast!",
                    MotionToastStyle.INFO,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Delete Toast

       MotionToast.darkColorToast(this,"Delete all history!",
                    MotionToastStyle.DELETE,
                    MotionToast.GRAVITY_BOTTOM,
                    MotionToast.LONG_DURATION,
                    ResourcesCompat.getFont(this,R.font.helvetica_regular))  

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal

License



    Copyright 2020 Spikey sanju

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

More Repositories

1

Expenso

📊 A Minimal Expense Tracker App built to demonstrate the use of modern android architecture component with MVVM Architecture
Kotlin
884
star
2

Einsen

🎯 Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.
Kotlin
858
star
3

ZoomRecylerLayout

🎢 Zoom Recycler Layout Manager For Android Kotlin
Kotlin
798
star
4

JetQuotes

🔖 A Quotes Application built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.
Kotlin
492
star
5

Wiggles

🐶 Beautiful Puppy adoption app with Jetpack Compose #AndroidDevChallenge
Kotlin
417
star
6

Epoch

⏱ A simple stop watch app built to demonstrate the use of Jetpack Compose
Kotlin
72
star
7

JetQuotes-Desktop

🔖 A Quotes Application built to Demonstrate the Compose for Desktop UI
Kotlin
64
star
8

Dashboard-UI-Android

Simple Dashboard UI in Android Studio
Kotlin
45
star
9

HeyBooks

HeyBooks is a sample application built to demonstrate the use of Jetpack Compose UI Toolkit with Modern android architecture components!
Kotlin
34
star
10

Mini-Notes-App-Realm

📘 A Mini Notes App Powered by Realm DB as Backend
Kotlin
32
star
11

Picto

🌌 An MVVM Sample project with custom Image Loading Library
Kotlin
19
star
12

Tourism

⛰ A simple tourism app UI & With dummy data.
Kotlin
12
star
13

Custom-TabBar-Layout-Android

Custom TabBar Layout in android using Kotlin.
Kotlin
11
star
14

Pineberry-Splash-Screen-Android

📱 An simple splash screen in android using Kotlin
Kotlin
8
star
15

FlashNews-MVVM

🗞 A Flash News is an app built with Google's Official AAC.
Kotlin
7
star
16

Furniture-App

This is an furniture sales app where user can buy furniture and sofas in online.It's similar to Ecommerce application. We can sort list, filter and add to favourites and carts.
Java
4
star
17

Spikeysanju

A Passionate Android Developer & UI/UX Designer
4
star
18

spikeysanju.com

Welcome to my portfolio! This repository is currently being actively developed and will be frequently updated. While it hasn't been officially launched yet, you're welcome to take a look at it. Please note that all of the content within this portfolio is just dummy text at the moment.
Svelte
4
star
19

Lynkz

Personalised Link sharing app
Kotlin
2
star
20

TodoNotesWeb

This the the webpage for todo notes app.
HTML
2
star
21

CompostAnimations

A sample application to breakdown complex animation into smaller chunks.
Kotlin
2
star
22

QuotesApp

A Minimal Quotes App Built to Describe the use of MVVM Architecture using SwiftUI
Swift
2
star
23

Saviour-Android

IOT application for accident tracker in realtime with raspberry pi 3 & gps sensors
Kotlin
2
star
24

Coil-Image-Loader-And

A Sample App for Coil Image Loader Library for Android using Kotlin!...
Kotlin
2
star
25

Dozlog

Svelte
1
star
26

Patio

A Simple Patient Managment App powered by Firebase
Kotlin
1
star
27

ShoppingList

Shopping List Todo
Java
1
star
28

Todo-App-SwiftUI

This is Todo App made with Swift UI & Core Data
Swift
1
star
29

SIEMENS

A Simple PDF Generate App
Java
1
star
30

Video_templates

All my library screenshot & videos
1
star