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

Email and password signup is a technology that has not been innovated on in decades. Signup forms are cumbersome and repetitive. When users forget their credentials and fail to sign in, you can lose customers. So, that's why here twitter digits comes in picture.

A CoordinatorLayout.Behavior<View> which interacts with an AppBarLayout as a dependency for translating and scaling a specific View of your choice.

FastTextView is faster than Android TextView. FastTextView uses StaticLayout to render Spanned String, so it supports most features of Android TextView

Android library convert image to ascii.

A beautiful fancy Button Loading.

Clean Architecture with Advanced Rx + Dagger 2.12 + Architecture Components.

This repo contains a simple list of products and send a simple transaction with apiary.

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