
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
com.greycellofp:tastytoast
Advanced tools
A simple, lightweight alternative to android's system wide toast.
Note: Still WIP!
Contextual toasts that stick to an activity. There are three available flavors of toasts (which you could extend and customize as well) - Alert Toast, Confirmation Toast & Message Toasts.
##Gradle Dependency
Add this in your project app's build.gradle
dependencies{
compile 'com.greycellofp:tastytoast:1.0.1'
}
1.0.1
#Quick Usage
TastyToast.makeText(YourActivty.this, "your message text", TastyToast.STYLE_MESSAGE).show();
TastyToast.makeText(YourActivity.this, "some alert text", TastyToast.STYLE_ALERT).show();
TastyToast.makeText(YourActivity.this, "some confirmation text", TastyToast.STYLE_CONFIRM).show();
//sets a variable duration based on the text size with time boundaries at 3sec <= t <= 10sec
TastyToast.makeText(YourActivity.this, "a long text ~ more than 120 characters", TastyToast.STYLE_MESSAGE).enableVariableDuration().show();
//uses Jake Wharton's SwipeDismissTouchListener
TastyToast.makeText(YourActivity.this, "Some text", TastyToast.STYLE_MESSAGE).enableSwipeDismiss().show();
You can customise your TastyToast
by providing a Style
input, or you can provide your own custom views like so
makeText(Activity context, CharSequence text, Style style, int layoutId)
makeText(Activity context, CharSequence text, Style style, View customView)
float textSize = 20; //you should of course consider converting to sp
TastyToast.makeText(YourActivity.this, "Some text", TastyToast.STYLE_MESSAGE, textSize).show();
PRs highly appreciated
Public License
FAQs
A simple, lightweight alternative to android's system wide toast.
We found that com.greycellofp:tastytoast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.