Language:
English
简体中文
This is a simple library to bypass the icon and two-line text limitations added by Android 12 Toast.
dependencies {
implementation 'io.github.justlikecheese.nextoast:NexToast:1.2.2'
}- Move the NexToast.java file to your project.
- Change the package name if you like.
- Use the NexToast like Toast.
Use NexToast like Toast.
NexToast.makeText(this, "Hello World!", Toast.LENGTH_SHORT).show();NexToast has added the following extended useful methods.
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();If you have any ideas or issues, you can create an issue or pull request.
What, License? It's just a simple library bro. DO WHAT THE FUCK YOU WANT




