MyDynamicToast


Source link: https://github.com/developerVatsal/MyDynamicToastExample

MyDynamicToastLibrary

This is an Android Library for developer to use Android Toast and Customized Toast easily.

##Download

###Gradle dependency:

  • Add the following to your project level build.gradle:
allprojects {
  repositories {

...
maven {
 url "https://jitpack.io" 
}
  
}
 
}
 
  • Add this to your app build.gradle:
dependencies {

compile 'com.github.vatsaldesai92:MyDynamicToastLibrary:1.0.1' 
}
 

##Usage

There are 5 types of Toast.

1) Error Toast
 Just pass context & error message as like bellow exampe.

MyDynamicToast.errorMessage(MainActivity.this, "error toast message..");
 
2) Warning Toast
 Just pass context & warning message as like bellow exampe.

MyDynamicToast.warningMessage(MainActivity.this, "warning toast message1234546677889023489..");
 
3) Success Toast
 Just pass context & success message as like bellow exampe.

MyDynamicToast.successMessage(MainActivity.this, "success toast message..");
 
4) Information Toast
 Just pass context & information message as like bellow exampe.

MyDynamicToast.informationMessage(MainActivity.this, "information toast message1234546677889023489..");
 
5) Custom Toast
 User can customize Toast as like bellow exampe.

MyCustomToast myCustomToast = new MyCustomToast(MainActivity.this);

  myCustomToast.setCustomMessageText("custom toast message..");

  myCustomToast.setCustomMessageTextSize(18);

  myCustomToast.setCustomMessageTextColor(Color.WHITE);

  myCustomToast.setCustomMessageIcon(R.drawable.ic_success, MyCustomToast.POSITION_LEFT);

  myCustomToast.setCustomMessageIconColor(Color.WHITE);
 //

 myCustomToast.setCustomMessageBackgroundColor("#853657");

  myCustomToast.setCustomMessageBackgroundDrawable(R.drawable.info_message_background);

  myCustomToast.setCustomMessageDuration(MyCustomToast.LENGTH_LONG);

  myCustomToast.setGravity(Gravity.CENTER, 0, 0);

  myCustomToast.setCustomMessageTypeface("cambriai.ttf");

  myCustomToast.show();
 

##Usage Example

https://github.com/developerVatsal/MyDynamicToastExample/tree/master

##License

Apache Version 2.0 

Resources

MarkdownView is a simple library that helps you display Markdown text or files on Android as a html page just like Github.

Input validation and error displaying for any Android view that extends from a TextView. This library is born from frustration towards complex if statements and a desire to make form validation much, much easier.

Zoom header for Android ViewPager.

A library for easy call JS-functions from Java.

An Android library to make a flowing gradient effect, similar to login screen in Instagram app.

An Android Banner that supports auto scrolling and decent animation.

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