All Projects β†’ usman18 β†’ TastyToasty

usman18 / TastyToasty

Licence: Apache-2.0 license
An easy-to-use library to create tasty πŸ˜‹ Toasts with a bunch of flavours 🌈. It also provides effortless methods to create Instagram like Toasts πŸ’“

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to TastyToasty

toaster-android
A simple library to add custom toast to android applications.
Stars: ✭ 22 (-59.26%)
Mutual labels:  toast, ui-widget
Toasty
The usual Toast, but with steroids πŸ’ͺ
Stars: ✭ 6,279 (+11527.78%)
Mutual labels:  toast, ui-widget
Jh flutter demo
a flutter demo
Stars: ✭ 229 (+324.07%)
Mutual labels:  toast
vercel-toast
πŸ’¬ Framework-agnostic vercel design's toast component (β‰ˆ1KB Gzipped)
Stars: ✭ 67 (+24.07%)
Mutual labels:  toast
toaststrap
A simple, lightweight JavaScript library for showing Bootstrap 5 toast popups.
Stars: ✭ 16 (-70.37%)
Mutual labels:  toast
Teaset
A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.
Stars: ✭ 2,845 (+5168.52%)
Mutual labels:  toast
React-Toast
Custom push notification (Toast) implementation under React + stayed by TailwindCSS.
Stars: ✭ 74 (+37.04%)
Mutual labels:  toast
Toast Swift
Toast view using swift.
Stars: ✭ 228 (+322.22%)
Mutual labels:  toast
smart-webcomponents-community
Material & Bootstrap Web Components built with Smart
Stars: ✭ 30 (-44.44%)
Mutual labels:  toast
react-native-rooster
Your toast solution for react-native apps πŸ”
Stars: ✭ 19 (-64.81%)
Mutual labels:  toast
flutter easyloading
✨A clean and lightweight loading/toast widget for Flutter, easy to use without context, support iOS、Android and Web
Stars: ✭ 1,021 (+1790.74%)
Mutual labels:  toast
simple-notify
Pure javascript toast notifications.
Stars: ✭ 108 (+100%)
Mutual labels:  toast
Squawk
Quick & interactive iOS alerts in Swift.
Stars: ✭ 254 (+370.37%)
Mutual labels:  toast
AckBar
AckBar is a very lightweight and customizable android library to display brief message to user.
Stars: ✭ 14 (-74.07%)
Mutual labels:  toast
Toasted Notes
simple, flexible toast notifications for react
Stars: ✭ 241 (+346.3%)
Mutual labels:  toast
fusion
An Easy-to-use Kotlin based Customizable Modules Collection with Material Layouts by BlackBeared.
Stars: ✭ 39 (-27.78%)
Mutual labels:  toast
Overlay support
a flutter toast and notification library
Stars: ✭ 232 (+329.63%)
Mutual labels:  toast
toppy
Overlay library for Angular 7+
Stars: ✭ 81 (+50%)
Mutual labels:  toast
iOSUtilitiesSource
IOS Utilities Library for Swift
Stars: ✭ 46 (-14.81%)
Mutual labels:  toast
vue-toast
vue.js toast tips ζη€Ίζ–‡ζœ¬ Vue1.0&2.0
Stars: ✭ 17 (-68.52%)
Mutual labels:  toast

TastyToasty

API
An easy-to-use library to create tasty πŸ˜‹ Toasts with a bunch of flavours 🌈 It also provides effortless methods to create Instagram like Toasts πŸ’“

Article

Installation

Add this in your root build.gradle file (not your module build.gradle file):

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

Add this to your module's build.gradle file :

dependencies {
	...
    implementation 'com.github.usman18:TastyToasty:v1.2'
}

Usage

Instagram Toasts

  1. Instagram Like

TastyToasty.instaLike(MainActivity.this, "1").show();


Similarly 2. instaFollower and 3. instaComment can be used



  1. Instagram All

TastyToasty.instaAll(MainActivity.this, "101","20","60").show();


VIBGYOR Toasts 🌈

  1. VIOLET

TastyToasty.violet(MainActivity.this, "Its lit", R.drawable.ic_whatshot).show();

Similarly the rest of VIBGYOR can be used


You can pass null for those arguments which you don't want in your Toast (eg Toast w/o icon or w/o Text). We've handled it for you πŸ€—


Standard Toasts

  1. Success

TastyToasty.success(MainActivity.this, "Task Successful").show();

Similarly the rest of standard (error, trending, star) can be used



Custom Toasts

1. using makeText()



// Pass the last attribute as false or null if your do not want the tail in Toast
TastyToasty.makeText(MainActivity.this, "This is a custom toast",TastyToasty.LONG, R.drawable.ic_action_favourite, R.color.violet, R.color.white, true).show();

2. Builder Method (More easier to use)


new TastyToasty.Builder(MainActivity.this)
  .setText("This one is using builder method")    
  .setBackgroundColor(R.color.green)      
  .setIconId(R.drawable.ic_verified_user)
  .showTail(true) // Pass false or null or don't call at all if you don't want the "tail" in your toast
  .show();

Note:

Using builder method you can create customized Toasts pretty easily. Only call the methods for attributes which you would like to have in your Toast. For example, if you want a Toast with just icon, just call that method (make sure you always pass the context though) and ignore the rest of the attribute setting methods. Below is an example of the same.



//Default text color is white and default background color is pinkinsh red
new TastyToasty.Builder(MainActivity.this)
    .setIconId(R.drawable.ic_whatshot)
    .show();


Like my work ? You can tip me here

Contributions

Contributions are always welcome. Please fork this repository and contribute using pull requests. The pull requests will be thoroughly assessed and if found significant will be accepted.

Lets become friends

My email : [email protected]

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