All Projects → valdesekamdem → MaterialDesign-Toast

valdesekamdem / MaterialDesign-Toast

Licence: other
Custom android Toast with Material Design

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to MaterialDesign-Toast

BalloonPopup
Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
Stars: ✭ 32 (-54.29%)
Mutual labels:  popup, toast, android-ui
Sweet Alert
A BEAUTIFUL, RESPONSIVE, CUSTOMIZABLE, ACCESSIBLE (WAI-ARIA) REPLACEMENT FOR JAVASCRIPT'S POPUP BOXES FOR LARAVEL
Stars: ✭ 696 (+894.29%)
Mutual labels:  popup, toast
Popupview
Toasts and popups library written with SwiftUI
Stars: ✭ 581 (+730%)
Mutual labels:  popup, toast
Aiforms.dialogs
AiForms.Dialogs for Xamarin.Forms
Stars: ✭ 143 (+104.29%)
Mutual labels:  popup, toast
Aestheticdialogs
📱 An Android Library for 💫fluid, 😍beautiful, 🎨custom Dialogs.
Stars: ✭ 352 (+402.86%)
Mutual labels:  popup, android-ui
Popupwindow
PopupWindow is a simple Popup using another UIWindow in Swift
Stars: ✭ 401 (+472.86%)
Mutual labels:  popup, toast
Toastui
A simple way to show toast in SwiftUI.
Stars: ✭ 138 (+97.14%)
Mutual labels:  popup, toast
neodigm55
An eclectic low-code vanilla JavaScript UX micro-library for those that defiantly think for themselves.
Stars: ✭ 14 (-80%)
Mutual labels:  popup, toast
Alerttoast
Create Apple-like alerts & toasts using SwiftUI
Stars: ✭ 151 (+115.71%)
Mutual labels:  popup, toast
Tfpopup
🚀🚀🚀TFPopup不生产弹框,它只是弹框的弹出工🚀🚀🚀默认支持多种动画方式一行调用,支持完全自定义动画.
Stars: ✭ 182 (+160%)
Mutual labels:  popup, toast
Sweetalert2
A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies.
Stars: ✭ 13,929 (+19798.57%)
Mutual labels:  popup, toast
Autocomplete
Simple yet powerful autocomplete behavior for EditTexts, to avoid working with MultiAutoCompleteTextView APIs.
Stars: ✭ 307 (+338.57%)
Mutual labels:  popup, android-ui
Razor.SweetAlert2
A Razor class library for interacting with SweetAlert2
Stars: ✭ 98 (+40%)
Mutual labels:  popup, toast
Xtoast
Android 悬浮窗框架,好用不解释
Stars: ✭ 493 (+604.29%)
Mutual labels:  popup, toast
Livesmashbar
An elegant looking and easy to use informative library with LiveData integration for Android.
Stars: ✭ 107 (+52.86%)
Mutual labels:  duration, toast
Anylayer
Android稳定高效的浮层创建管理框架
Stars: ✭ 745 (+964.29%)
Mutual labels:  popup, toast
Glidetoast
GlideToast is a android library to implement flying Toast Animation
Stars: ✭ 162 (+131.43%)
Mutual labels:  toast, android-ui
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 (+87.14%)
Mutual labels:  popup, toast
Balloon
🎈 Modernized and sophisticated tooltips, fully customizable with an arrow and animations on Android.
Stars: ✭ 2,242 (+3102.86%)
Mutual labels:  popup, android-ui
Toast
To use it in PCL or .NetStandard projects write this line of code : CrossToastPopUp.Current.ShowToastMessage("Message");
Stars: ✭ 51 (-27.14%)
Mutual labels:  duration, toast

Material Design Toast

MD-Toast is a simple and light Open Source Android library which, proposes Toasts (popup) with Material Design render.

Overview

  • Info

    Info Toast

  • Success

    Success Toast

  • Warning

    Warning Toast

  • Error

    Error Toast

Demo

You can check the demo Here

Getting Started

Add Gradle dependency in the build.gradle file of your application module (app in the most cases) :

dependencies {
    compile 'com.valdesekamdem.library:md-toast:0.9.0'
}

Now you can use MDToast as you wish by following the bellow code:

MDToast mdToast = MDToast.makeText(Context context, String message, int duration, int type);
mdToast.show();
  • context : is the context where Toast is called. In most cases it takes value this from activities or getActivity() from fragments.
  • message : The message to display.
  • duration (optional) : the duration of the toast.
    • MDToast.LENGTH_LONG : for a long duration.
    • MDToast.LENGTH_SHORT : for a short duration.
  • type (optional) : The type of toast to display.
    • MDToast.TYPE_INFO : for info toast
    • MDToast.TYPE_SUCCESS : for success toast
    • MDToast.TYPE_WARNING : for warning toast
    • MDToast.TYPE_ERROR : for error toast

Important to know : If you don't specify the toast's duration and type, by default MDToast will used MDToast.LENGTH_SHORT for duration and MDToast.TYPE_INFO for type.

You can change the parameters during the runtime.

  • mdToast.setIcon(Drawable icon) : To set a drawable as the toast icon.

  • mdToast.setIcon(int iconId): To provide the icon resource id.

  • mdToast.setText(String message) : To change the message of the toast.

  • mdToast.setType(int type) : To change the type of the toast.

Note that MDToast inherits from Toast so you can always handle it as you do with Toast

Contributing

Want to contribute ? You are welcome ! We are waiting for your pull requests.

Contributors

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].