loadtoast alternatives and similar packages
Based on the "Toast Widget" category.
Alternatively, view loadtoast alternatives based on common mentions on social networks and blogs.
-
Android-AppMsg
In-layout notifications. Based on Toast notifications and article by Cyril Mottier (http://android.cyrilmottier.com/?p=773). -
MessageBar
An Android Toast replacement, similar to the one seen in the GMail app. -
FloatingToast-Android
Android library to create customizable floating animated toasts like in Clash Royale app -
CoolToast
A really simple library that help you to display a custom toast with many colors (for : success, warning, danger, info, dark, light, primary...etc ), or with rounded corners, or event with image. -
FabToast
Attractive, stylish and customizable toast library for Android.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of loadtoast or a related project?
README
Load Toast Library
The default toasts are ugly and don't really provide much more than a short message. This small library provides a better toast which will give the user feedback by morphing into a checkmark or cross (success and fail). The lifetime of the toast is completely controlled by you.
Demo
Usage
Step 1
Gradle
dependencies {
compile 'net.steamcrafted:load-toast:1.0.12'
}
Step 2
The API is very simple, create a new toast by providing a context:
LoadToast lt = new LoadToast(context);
Change the displayed text:
lt.setText("Sending Reply...");
If you don't have a message to display, the toast will shrink to only show the circular loader.
Then proceed to show the toast:
lt.show();
When your background thingy is done provide feedback to the user and hide the toast:
// Call this if it was successful
lt.success();
// Or this method if it failed
lt.error();
// Or if no feedback is desired you can simply hide the toast
lt.hide();
To properly position the toast use the following method to adjust the Y offset:
lt.setTranslationY(100); // y offset in pixels
You can also change the colors of the different toast elements:
lt.setTextColor(Color.RED).setBackgroundColor(Color.GREEN).setProgressColor(Color.BLUE);
In some situations a border might be desired for increased visibility, by default it is transparent:
// Change the border color
lt.setBorderColor(int color);
// Change the border width
lt.setBorderWidthPx(int widthPx);
lt.setBorderWidthDp(int widthDp);
lt.setBorderWidthRes(int resourceId);
When displaying a message in a RTL language you can force the text to marquee from left to right instead of the default right to left:
// pass in false for RTL text, true for LTR text
lt.setTextDirection(boolean isLeftToRight);
These can be chained as you can see.
License
Released under the Apache 2.0 License
*Note that all licence references and agreements mentioned in the loadtoast README section above
are relevant to that project's source code only.