ToastBar Save

A Material Design Top/Bottom Toast Bar.

Project README

Material Design Top/Bottom Toast Bar.

Min SDK >= 14

Support Android 10

How to implement

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			maven { url "" }

Step 2. Add the dependency

    dependencies {
            implementation 'com.github.SwiftyWang:TopToastBar:1.1.7'

Support in the application or in the window.

Toast style to use:

with container view:

    public void onBottomToast(View view) {
        BottomToast.make((ViewGroup) findViewById(, "HELLO WORLD!!!!", 3000).show();

    public void onTopToast(View view) {
        TopToast.make((ViewGroup) findViewById(, "HELLO WORLD!!!!", 3000).show();

without container view(attach as overlay)

    public void onBottomToast(View view) {
        BottomToast.make(context, "HELLO WORLD!!!!", 3000).show();

    public void onTopToast(View view) {
        TopToast.make(context, "HELLO WORLD!!!!", 3000).show();

all public apis:

setAnimationInterpolator(Interpolator enterInterpolator, Interpolator exitInterpolator);

setPosition(Position position);

setText(String text);

setTime(long time);

show(long delay);




ToDo List

  • add rignt button in the toast.
  • support customer layout.
  • add customer animation support.
Open Source Agenda is not affiliated with "ToastBar" Project. README Source: SwiftyWang/ToastBar
Open Issues
Last Commit
4 years ago

Open Source Agenda Badge

Open Source Agenda Rating