All Projects → marcoscgdev → MaterialToast

marcoscgdev / MaterialToast

Licence: Apache-2.0 license
A fully and highly customizable material designed Toast for Android.

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to MaterialToast

Fftoast
A very powerful iOS message notifications and AlertView extensions. It can be easily realized from the top of the screen, the bottom of the screen and the middle of the screen pops up a notification. You can easily customize the pop-up View.
Stars: ✭ 649 (+1993.55%)
Mutual labels:  toast, notification
Reapop
📮 A simple and customizable React notifications system
Stars: ✭ 1,155 (+3625.81%)
Mutual labels:  toast, notification
Anylayer
Android稳定高效的浮层创建管理框架
Stars: ✭ 745 (+2303.23%)
Mutual labels:  toast, notification
toast-swift
A Swift Toast view - iOS 14 style and newer - built with UIKit. 🍞
Stars: ✭ 85 (+174.19%)
Mutual labels:  toast, notification
Vue Toasted
🖖 Responsive Touch Compatible Toast plugin for VueJS 2+
Stars: ✭ 2,091 (+6645.16%)
Mutual labels:  toast, notification
React Cool Portal
😎 🍒 React hook for Portals, which renders modals, dropdowns, tooltips etc. to <body> or else.
Stars: ✭ 458 (+1377.42%)
Mutual labels:  toast, notification
React Toastify
React notification made easy 🚀 !
Stars: ✭ 8,113 (+26070.97%)
Mutual labels:  toast, notification
Notie
🔔 a clean and simple notification, input, and selection suite for javascript, with no dependencies
Stars: ✭ 6,170 (+19803.23%)
Mutual labels:  toast, notification
Noty
A simple library for creating animated warnings/dialogs/alerts for Android.
Stars: ✭ 136 (+338.71%)
Mutual labels:  toast, notification
Nativescript Feedback
📢 Non-blocking textual feedback for your NativeScript app
Stars: ✭ 127 (+309.68%)
Mutual labels:  toast, notification
Toast
To use it in PCL or .NetStandard projects write this line of code : CrossToastPopUp.Current.ShowToastMessage("Message");
Stars: ✭ 51 (+64.52%)
Mutual labels:  toast, notification
Vue Toast Notification
Yet another toast notification plugin for Vue.js 🌷
Stars: ✭ 205 (+561.29%)
Mutual labels:  toast, notification
denbun
Adjust showing frequency of Android app messages, and to be more user friendly 🐦
Stars: ✭ 17 (-45.16%)
Mutual labels:  toast, notification
Bot toast
A really easy to use flutter toast library
Stars: ✭ 551 (+1677.42%)
Mutual labels:  toast, notification
SimpleToast
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or MacOS applications in SwiftUI. Because of the flexibility to show any content it is also possible to use the library for showing simple modals.
Stars: ✭ 131 (+322.58%)
Mutual labels:  toast, notification
Vue Toastify
🔥 Simple, extendable, dependency free notification plugin. 🔥
Stars: ✭ 126 (+306.45%)
Mutual labels:  toast, notification
Notiflix
Notiflix is a JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
Stars: ✭ 172 (+454.84%)
Mutual labels:  toast, notification
mosha-vue-toastify
A light weight and fun Vue 3 toast or notification or snack bar or however you wanna call it library.
Stars: ✭ 185 (+496.77%)
Mutual labels:  toast, notification
vue-dk-toast
Lightweight toast-notification plugin for Vue 3 🍞
Stars: ✭ 23 (-25.81%)
Mutual labels:  toast
HHChaosToolkit
A set of MVVM tookit class libraries for uwp platform.
Stars: ✭ 27 (-12.9%)
Mutual labels:  toast

MaterialToast

A fully and highly customizable material designed Toast for Android.

You can download the sample apk here.


Releases:

Current release: 1.0.2.

You can see all the library releases here.


Usage:

Adding the depencency

Add this to your root build.gradle file:

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

Now add the dependency to your app build.gradle file:

implementation 'com.github.marcoscgdev:MaterialToast:1.0.2'

Creating a Toast

  • Native version
MaterialToast.makeText(activity, "Hello, I'm a material toast!", Toast.LENGTH_SHORT).show();

Also with custom icon

MaterialToast.makeText(activity, "Hello, I'm a material toast!", R.mipmap.ic_launcher, Toast.LENGTH_SHORT).show();

And also with custom background color (text will be automatically colored based on background color)

MaterialToast.makeText(activity, "Hello, I'm a material toast!", R.mipmap.ic_launcher, Toast.LENGTH_SHORT).setBackgroundColor(Color.RED).show();

NEW! With custom duration (in millis):

MaterialToast.makeText(activity, "Hello, I'm a material toast!", R.mipmap.ic_launcher, 4000).setBackgroundColor(Color.RED).show();
  • Complete version
new MaterialToast(activity)
       .setMessage("Hello, I'm a material toast!")
       .setIcon(R.mipmap.ic_launcher)
       .setDuration(Toast.LENGTH_SHORT)
       .setBackgroundColor(Color.RED)
       .show();

See the sample project to clarify any queries you may have.


License

Copyright 2018 Marcos Calvo García

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].