6 Star 8 Fork 1

HarmonyOS-TPC / Toasty

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Gradle Dependency

implementation "io.openharmony.tpc.thirdlib:Toasty:1.0.1"

Toasty

The usual Toast, but with steroids.

Usage

To display an error Toast:

Toasty.error(yourContext, "This is an error toast.", Toast.LENGTH_SHORT, true);

To display a success Toast:

Toasty.success(yourContext, "Success!", Toast.LENGTH_SHORT, true);

To display an info Toast:

Toasty.info(yourContext, "Here is some info for you.", Toast.LENGTH_SHORT, true);

To display a warning Toast:

Toasty.warning(yourContext, "Beware of the dog.", Toast.LENGTH_SHORT, true);

To display the usual Toast:

Toasty.normal(yourContext, "Normal toast w/o icon");

To display the usual Toast with icon:

Toasty.normal(yourContext, "Normal toast w/ icon", yourIconDrawable);

You can also create your custom Toasts with the custom() method:

Toasty.custom(yourContext, "I'm a custom Toast", yourIconDrawable, tintColor, duration, withIcon, 
shouldTint);

About

The usual Toast, but with steroids. expand collapse
Java
LGPL-3.0
Cancel

Releases

No release

Toasty

Contributors

All

Activities

Load More
can not load any more
1
https://toscode.gitee.com/HarmonyOS-tpc/Toasty.git
git@toscode.gitee.com:HarmonyOS-tpc/Toasty.git
HarmonyOS-tpc
Toasty
Toasty
master

Search