Skip to content

NexToast

A free Android Toast library that removes the icon and two-line text restrictions from the original Toast

Introduction

In Android 12, Google added limitations to Toast, restricting it to an icon and two lines of text. Google hoped that we would use Snackbar to replace Toast. However, the original Toast was obviously lighter and more convenient than Snackbar. Thus, NexToast was born. It removes the icon and two-line text restrictions of the original Toast, extends Toast's methods, and its display effect and usage are consistent with the original Toast.

Usage

Add the following to your build.gradle:

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

How to Use

Use NexToast like Toast

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

Customize Toast Text Style

java
NexToast toast = NexToast.makeText(this, "Hello World", Toast.LENGTH_SHORT);
toast.getTextView().setTextColor(Color.WHITE);
toast.getTextView().setTextSize(20);
toast.show();

Preview

Preview1Preview2Preview3Preview4Preview5

License

NexToast is licensed under the WTFPL license.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2025 JustLikeCheese

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.

Released under the WTFPL License.