All Projects → inaseem → EasyToast

inaseem / EasyToast

Licence: MIT license
An Android library that takes the standard Android Toast to the next level with built-in icons from font-awesome and many styling options that gives your app and user experience an extra awesome feeling!

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to EasyToast

SuperToolbar
Android native Toolbar on steroids 💪
Stars: ✭ 52 (+188.89%)
Mutual labels:  androidui, androidlibrary
RTL-Toast
Android Toast For RTL Applications
Stars: ✭ 16 (-11.11%)
Mutual labels:  toast
MTextField
A new Material Design text field that comes in a box, based on [Google Material Design guidelines]
Stars: ✭ 32 (+77.78%)
Mutual labels:  androidlibrary
MaterialDesign-Toast
Custom android Toast with Material Design
Stars: ✭ 70 (+288.89%)
Mutual labels:  toast
doubleClick
A lib To handle double click on android View's components.
Stars: ✭ 47 (+161.11%)
Mutual labels:  androidlibrary
react-awesome-toasts
Toast notifications for react.
Stars: ✭ 64 (+255.56%)
Mutual labels:  toast
jh-weapp-demo
微信小程序项目- 实现一些常用效果、封装通用组件和工具类
Stars: ✭ 60 (+233.33%)
Mutual labels:  toast
YYBottomSheet
Simple and Clear BottomSheet
Stars: ✭ 45 (+150%)
Mutual labels:  toast
react-native-whc-toast
A react native module to show toast alert, it works on iOS and Android.
Stars: ✭ 20 (+11.11%)
Mutual labels:  toast
SolveWithStack
Android library for helping you to reach out to best possible answer for your bug/error available on stack overflow and will show it in your Android Studio Console only.
Stars: ✭ 15 (-16.67%)
Mutual labels:  androidlibrary
bs5-utils
A JavaScript utility package for Bootstrap 5 components.
Stars: ✭ 26 (+44.44%)
Mutual labels:  toast
vue2-dialog
A mobile Vue plugin for VueDialog
Stars: ✭ 21 (+16.67%)
Mutual labels:  toast
learnwithjason.dev
Boop Crew HQ
Stars: ✭ 101 (+461.11%)
Mutual labels:  toast
Toaster-Library
🎫 Android library, Custom toast and dialog (2018)
Stars: ✭ 14 (-22.22%)
Mutual labels:  toast
vue-dk-toast
Lightweight toast-notification plugin for Vue 3 🍞
Stars: ✭ 23 (+27.78%)
Mutual labels:  toast
ASToast
A Swift extension for using Android style Toast notifications.
Stars: ✭ 34 (+88.89%)
Mutual labels:  toast
xxy
xxy xxy.js alert 移动端弹窗 弹窗 上拉加载 下拉刷新 移动端UI 轮播 banner
Stars: ✭ 84 (+366.67%)
Mutual labels:  toast
QuickWebKit
A great & strong plugin based WebViewController. 一款基于插件的 WebView 视图控制器,您可以基于它设计您的浏览器插件,然后像积木一样来组装它们。
Stars: ✭ 29 (+61.11%)
Mutual labels:  toast
HHChaosToolkit
A set of MVVM tookit class libraries for uwp platform.
Stars: ✭ 27 (+50%)
Mutual labels:  toast
toast2.js
A JavaScript toast component.
Stars: ✭ 15 (-16.67%)
Mutual labels:  toast

EasyToast

platform API

An Android library that takes the standard Android Toast to the next level with built-in icons from font-awesome and many styling options that gives your app and user experience an extra awesome feeling!


Success Toast
Info Toast
Error Toast
Warning Toast
Default Toast
Confusing Toast

Prerequisites

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

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

Dependency

Add this to your module's build.gradle file (make sure the version matches the JitPack badge above):

dependencies {
	...
	implementation 'com.github.naseemali925:EasyToast:0.0.1'

Usage

Each method always returns a Toast object, so you can customize the Toast much more. DON'T FORGET THE show() METHOD!

To display the default Toast:

EasyToast.makeText(this,"Hello World !",EasyToast.LENGTH_LONG,EasyToast.DEFAULT);

To display a success Toast:

EasyToast.makeText(this,"Hello World !",EasyToast.LENGTH_LONG,EasyToast.SUCCESS);

To display an info Toast:

EasyToast.makeText(this,"Hello World !",EasyToast.LENGTH_LONG,EasyToast.INFO);

To display a warning Toast:

EasyToast.makeText(this,"Hello World !",EasyToast.LENGTH_LONG,EasyToast.WARNING);

To display the error Toast:

EasyToast.makeText(this,"Hello World !",EasyToast.LENGTH_LONG,EasyToast.ERROR);

To display the confusing Toast:

EasyToast.makeText(this,"Hello World !",EasyToast.LENGTH_LONG,EasyToast.CONFUSING);

You can also remove the android icon on top-right corner by passing last parameter false.

EasyToast.makeText(this, "I'm an EasyToast", EasyToast.LENGTH_LONG, EasyToast.INFO, false).show();

With The Builder Pattern

	EasyToast easyToast=new ToastBuilder(this)
                .textSize(16)
                .textColor(Color.WHITE)
		.type(EasyToast.SUCCESS)
                .showTopIcon(true)
                .leftIcon(FA.FA_CHECK)
                .typeface(someTypeface)
                .topIcon(FA.FA_ANGELLIST)
                .text("That's An Easy Toast")
                .build();
        easyToast.show();

Use Icons From Font Awesome

Use The FA Class To Access And Use The Icon

  FA.FA_CHECK
  FA.FA_BELL
  .
  .
  .
  //Choose Any From 900+ Icons
  
  //Or Use A Drawable
  EasyToast easyToast=new ToastBuilder(this)
                .textColor(Color.WHITE)
		.type(EasyToast.SUCCESS)
                .leftIcon(R.drawable.some_drawable)
                .topIcon(R.drawable.some_drawable)
                .text("That's An Easy Toast")
                .build();
        easyToast.show();

Use Font Awesome With Other Views

  FA.with(context).initialize();
  LinearLayout vGroup=(LinearLayout)findViewById(...);
  FA.addTo(vGroup);// It Will Add Font Awesome To All ChildViews That Supports Text(TextView,EditText,Button)
  FA.addTo(SomeTextView);// Adds Font Awesome To This TextView
  FA.addTo(SomeButton);// Adds Font Awesome To This Button
  FA.addTo(SomeEditText);// Adds Font Awesome To This EditText
  //Wanna Use Font-Awesome Icons Along Text
  someTextViewWithFA.setText("This Is A BUS "+FA.FA_BUS);

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 .

Contact - Let's become friend

License

MIT License

Copyright (c) 2018 Naseem Ali

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the license conditions.

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