Skip to content

JustLikeCheese/NexToast

Repository files navigation

Language: English 简体中文

Maven Central Version GitHub Release GitHub License

What's this?

This is a simple library to bypass the icon and two-line text limitations added by Android 12 Toast.

How to use?

Gradle

dependencies {
    implementation 'io.github.justlikecheese.nextoast:NexToast:1.2.2'
}

Manual

  1. Move the NexToast.java file to your project.
  2. Change the package name if you like.
  3. Use the NexToast like Toast.

Examples

Use NexToast like Toast.

NexToast.makeText(this, "Hello World!", Toast.LENGTH_SHORT).show();

Screenshots

Preview1 Preview2 Preview3 Preview4 Preview5

Feature API

NexToast has added the following extended useful methods.

TextView getTextView()

Returns the TextView of the Toast.

NexToast toast = NexToast.makeText(this, "Hello World!", Toast.LENGTH_SHORT);
toast.getTextView().setTextColor(0xFF555555); // Change text color
toast.show();

Comtribution

If you have any ideas or issues, you can create an issue or pull request.

License

What, License? It's just a simple library bro. DO WHAT THE FUCK YOU WANT

About

A simple library to bypass the icon and two-line restrictions added to Toast in Android 12.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages