Skip to content

nrk1989/SuperToast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperToast

Context sensual toasts for android.

Overview

SuperToast is a utility class that can be used by Android Developers who needs to show the toasts wrapped within the actual context.

A SuperToast will be displayed at the top postiion of an application window.

Usage

The API is kept as simple as the Toast API.

Create a instance:

  SuperToast mSuperToast=new SuperToast(Context);

Show the Info Toast:

mSuperToast.showShortInfoToast("Info Toast");

Show the Error Toast:

mSuperToast.showShortErrorToast("Error toast");

Hide the Toast:

mSuperToast.hideToast();

Important:

Make sure to call hideToast() in onPause() to cancel all the action remaining toasts.

Basic Samples

Info Toast

Error Toast

About

Context sensual toasts for android.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages