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

This library provides a useful widget class which automatically detects the presence of faces in the source image and crop it accordingly so to achieve the best visual result.

This project contains utility code related to Android security measures.

At present, it contains:

  • a PermissionUtils class with a checkCustomPermissions() static method, to help you detect if another app has defined your custom permissions before your app was installed
  • a TrustManagerBuilder to help you create a custom TrustManager, describing what sorts of SSL certificates you want to support in your HTTPS operations
  • a SignatureUtils class to help you determine the SHA-256 hash of the signing key of some package, to compare against known values, to help detect whether you are about to be communicating with some hacked version of an app

Features built in:

  • ProgressBar while adapter hasn't been set
  • EmptyView if adapter is empty
  • SwipeRefreshLayout (Google's one)
  • Infinite scrolling, when you reach the X last item, load more of them
  • Swipe To Dismiss
  • Sticky headers

android-target-tooltip allows to create toasts like tooltips, but targets can be specified, plus custom properties and features.

TextViewWithLinks is a TextView With Link handler

Example Proguard configurations for common Android libraries.

This project assumes that your ProGuard configuration is based off of the latest official proguard-android.txt config as shown below. Each library configuration should only be the rules required for that specific library, not a complete Android ProGuard configuration. The various library configurations are combined by the Gradle build system. The library rules should be universal, any app specific rules (such as preserving model classes) should be added in a custom proguard-project.pro file.

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