Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /