EasyToast


Source link: https://github.com/IsPra94/EasyToast

EasyToast

Just another custom Android Toast 🍞 but We have Butter and Jam 😍

Toasts with Butter and Jam

Usage

Gradle

1 Add it in your root build.gradle at the end of repositories


 allprojects {

repositories {

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

}

  
}
 

2 Add the dependency

  dependencies {

 compile 'com.github.IsPra94:EasyToast:1.0.0'
  
}
 

Maven

1 Add the JitPack repository to your build file

  <repositories>
  <repository>

<id>jitpack.io</id>

<url>https://jitpack.io</url>
 </repository>
</repositories> 

2 Add the dependency

  <dependency>

 <groupId>com.github.IsPra94</groupId>

 <artifactId>EasyToast</artifactId>

 <version>1.0.0</version>
</dependency> 

In Your Android Project

Success

EasyToast.success(MainActivity.this, "Success!!!");
 //Default duration : Toast.LENGTH_SHORT EasyToast.success(MainActivity.this, "Success!!!", Toast.LENGTH_LONG);
 EasyToast.success(MainActivity.this, "Success!!!", R.drawable.custom_icon, Toast.LENGTH_LONG);
 

Error

EasyToast.error(MainActivity.this, "Error!!!");
 //Default duration : Toast.LENGTH_SHORT EasyToast.error(MainActivity.this, "Error!!!", Toast.LENGTH_LONG);
 EasyToast.error(MainActivity.this, "Error!!!", R.drawable.custom_icon, Toast.LENGTH_LONG);
 

Info

EasyToast.info(MainActivity.this, "Info!!!");
 //Default duration : Toast.LENGTH_SHORT EasyToast.info(MainActivity.this, "Info!!!", Toast.LENGTH_LONG);
 EasyToast.info(MainActivity.this, "Info!!!", R.drawable.custom_icon, Toast.LENGTH_LONG);
 

Warning

EasyToast.warning(MainActivity.this, "Warning!!!");
 //Default duration : Toast.LENGTH_SHORT EasyToast.warning(MainActivity.this, "Warning!!!", Toast.LENGTH_LONG);
 EasyToast.warning(MainActivity.this, "Warning!!!", R.drawable.custom_icon, Toast.LENGTH_LONG);
 

Custom

EasyToast.custom(MainActivity.this, "Custom w/o icon");
 //Default duration : Toast.LENGTH_SHORT EasyToast.custom(MainActivity.this, "Custom w/o icon", Toast.LENGTH_LONG);
 EasyToast.custom(MainActivity.this, "Custom w/ icon", R.drawable.custom_icon, Toast.LENGTH_LONG);
 EasyToast.custom(MainActivity.this, "Custom colors w/o icon", getResources().getColor(R.color.background), getResources().getColor(R.color.text_color), Toast.LENGTH_LONG);
 EasyToast.custom(MainActivity.this, "Custom colors w/ icon", R.drawable.custom_icon, getResources().getColor(R.color.background), getResources().getColor(R.color.text_color), Toast.LENGTH_LONG);
 

Download Sample App

Resources

PhotoCropper is a light-weight but sharp and smart tool to help you cropping photos on android devices. By providing a simple callback interface for developers and encapsulating the tricky things of cropping photos into a library. It makes the logic much more easier and simpler.

Android Timeline View Library (Using RecyclerView) is simple implementation used to display view like Tracking of shipment/order, steppers etc.

Knife is a rich text editor component for writing documents in Android.

Convert Icon-font (e.g. font-awesome) to Drawable or Bitmap for Android.

This library provides you useful interfaces which tell loading-state and intercept url loading.

Quick action dialog fragment.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes