:bread: Make your native android Toasts Tasty

Overview

TastyToast

platform API License Android Arsenal

Make your native android toast look beautiful.

Preview

gif gif gif gif gif gif

About

Refer Here Wiki

Grab the above demo app from here :

Get it on Google Play

Dependency

Add dependency in your app module

dependencies {
	compile 'com.sdsmdg.tastytoast:tastytoast:0.1.1'
}

Usage

Java

TastyToast.makeText(getApplicationContext(), "Hello World !", TastyToast.LENGTH_LONG, TastyToast.WARNING);

Last parameter here is the type of toast you want to show.

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 .

License

Copyright 2016 Rahul Yadav

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.
Comments
  • Error:converting bytecode to dex......

    Error:converting bytecode to dex......

    The TastyToast is awesome! When I run my project then I got an exception,the detailed exception infomation is below. do you know how to fix this problem. Thx in advance.

    Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/facebook/rebound/AndroidSpringLooperFactory$ChoreographerAndroidSpringLooper$1;

    Error:Execution failed for task ':app:transformClassesWithDexForRelease'.

    com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException

    opened by JiangShuLiang 3
  • toast.cancel()

    toast.cancel()

    Hello , I think your TastyToast need a function of toast.cancel() . I can't cancel the TastyToast when i close my activity or fragment , and i think a cancel of toast is important. Thank's for your code , i like the TastyToast , it's beautiful

    opened by lerendan 3
  • About  Extendibility

    About Extendibility

    Hello,your Toast is great and I like it.But actually, sometimes I really want to move it to the center of the screen(And maybe some other changes anyway).So,hope that you can give users more methods to operate the Toast or just let it extends the native Toast~~~:)

    opened by WangXingjian 2
  • Make toasts customisable

    Make toasts customisable

    After looking through the code it seems like the toasts are quite hard coded, apart from the text it displays and the duration (which matches the normal toast duration of long (1) and short (0)).

    Here are some suggestions so that others can begin to use this feature in their apps:

    • [x] A default TastyToast.show(text) call that shows a default toast.
    • [ ] Change the background color TastyToast.show(text, #color)
    • [x] Pass in the duration in milliseconds, with a maximum bound
    • [ ] Either pass in an image or an array of images to display the icon or a gif: TastyToast.show(text, #color, #image), TastyToast.show(text, #color, #image[])

    Just a few suggestions.

    enhancement 
    opened by UshalNaidoo 2
  • Suggest

    Suggest

    Hi,Thank you very much for open source this library,There is a small suggestion,Is it possible to modify the background color of toast?Because some pages themselves are white background, it is not obvious,thank.

    opened by ichapter 1
  •  Multiple clicks appear too long

    Multiple clicks appear too long

    If you accidentally multi-point several times, really very uncomfortable experience Forgive my English is bad, directly on the code. public static void showToast(Context context, String content) { if (toast == null) { toast = Toast.makeText(context, content, Toast.LENGTH_SHORT); } else { toast.setText(content); } toast.show(); } I‘m learn from guolin

    invalid 
    opened by CherryLover 1
  • about the show time

    about the show time

    as we know Toast and your TasyToast use the Toast_LOGIN or TOAST_SHORT to control the Toast show Time . Can we make it more intelligence ,put a long type parameter to control the show time? Or cancel it when I want.

    opened by arthasshi 1
  • Memory leak

    Memory leak

    I'm use leakcanary in my project and I noticed a memory leak occurred. it say's references ErrorToastView.mContext leaks MainActivity instance here is the screenshot 74a22ca812d9785d040509e9637a0ed3

    opened by YouZiQian 4
Owner
Rahul Yadav
Mobile Development Group : IIT ROORKEE
Rahul Yadav
Android library providing bread crumbs to the support library fragments.

Hansel And Gretel Android library providing bread crumbs for compatibility fragments. Usage For a working implementation of this project see the sampl

Jake Wharton 163 Nov 25, 2022
Make your native android Dialog Fancy. A library that takes the standard Android Dialog to the next level with a variety of styling options. Style your dialog from code.

FancyAlertDialog-Android Prerequisites Add this in your root build.gradle file (not your module build.gradle file): allprojects { repositories { ..

Shashank Singhal 350 Dec 9, 2022
Make a cool intro for your Android app.

AppIntro AppIntro is an Android Library that helps you build a cool carousel intro for your App. AppIntro has support for requesting permissions and h

AppIntro Team 10.3k Dec 30, 2022
Make a cool intro for your Android app.

AppIntro AppIntro is an Android Library that helps you build a cool carousel intro for your App. AppIntro has support for requesting permissions and h

AppIntro Team 40 Jan 3, 2023
A set of Android-UI components to make it easier to request permission in a user friendly way.

Permission UI A set of Android-UI components to make it easier to request permission in a user friendly way. Access background location A jetpack comp

Stefan Wärting 54 Nov 3, 2022
Helper class to make any view rotatable

Rotatable This is a helper class actually, it simplifies having a view as rotatable by setting touch events and handling a lot of boilerplate works! S

Yahya Bayramoğlu 300 Nov 11, 2022
FloatingView can make the target view floating above the anchor view with cool animation

FloatingView FloatingView can make the target view floating above the anchor view with cool animation Links 中文版 README Blog about FloatingView demo.ap

UFreedom 1.8k Dec 27, 2022
A simple use of canvas to make real life clock

ClockView A simple use of canvas to make real life clock PR-viewer

Kishan Kumar 0 Dec 18, 2021
Display code with syntax highlighting :sparkles: in native way.

CodeView (Android) CodeView helps to show code content with syntax highlighting in native way. Description CodeView contains 3 core parts to implement

Kirill Biakov 827 Dec 22, 2022
Kotlin/Native interop to libui: a portable GUI library

kotlin-libui Kotlin/Native bindings to the libui C library. libui is a C lightweight multi-platform UI library using native widgets on Linux (Gtk3), m

Mike Sinkovsky 611 Dec 30, 2022
MIUINativeNotifyIcon - Fix the native notification bar icon function abandoned by the MIUI development team

MIUI 原生通知图标 Fix the native notification bar icon function abandoned by the MIUI

Fankesyooni 189 Jan 4, 2023
Rn-scratch-card - React Native Scratch Card which temporarily hides content from user

rn-scratch-card React Native Scratch Card which temporarily hides content from a

Sweatcoin 54 Jan 4, 2023
Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development.

Bubbles for Android Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your

Txus Ballesteros 1.5k Jan 2, 2023
[] Define and render UI specs on top of your Android UI

dspec A simple way to define and render UI specs on top of your Android UI. Usage Enclose the target UI with a DesignSpecFrameLayout, usually the root

Lucas Rocha 561 Dec 16, 2022
Useful library to use custom fonts in your android app

EasyFonts A simple and useful android library to use custom fonts in android apps without adding fonts into asset/resource folder.Also by using this l

Vijay Vankhede 419 Sep 9, 2022
This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano.

Note: we are not actively responding to issues right now. If you find a bug, please submit a PR. Android Sliding Up Panel This library provides a simp

Umano: News Read To You 9.4k Dec 31, 2022
StandOut lets you easily create floating windows in your Android app.

Coming Soon Meanwhile, checkout the demo video at http://www.youtube.com/watch?v=S3vHjxonOeg Join the conversation at http://forum.xda-developers.com/

Mark Wei 1.2k Dec 12, 2022
A simple library to add Emoji support to your Android Application

Emoji A library to add Emoji support to your Android app. Emojis can be picked in a PopupWindow. In order to edit and display text with Emojis this li

Niklas Baudy 1.4k Jan 4, 2023
Add some depth to your Android scrolling.

Parallax Pager Add some depth to your Android scrolling using the parallax effect! Installation Step 1. Add the JitPack repository to your build file

Prolific Interactive 782 Dec 29, 2022