Skip to content

This view is a custom toast is included success, fail, warning , info and changeable toast arguments .

Notifications You must be signed in to change notification settings

Mori-hub/Colored-Toast

Repository files navigation

Colored Toast

This view is a custom toast is included success, fail, warning , info and changeable toast arguments .

Features

  • Success toast
  • Fail toast
  • Warning toast
  • Info's toast
  • Changeable arguments toast

Installation

Install my-project with https://jitpack.io/

  implementation 'com.github.Mori-hub:Colored-Toast:1.0.0'

Usage/Examples

@Override

protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    
    setContentView(R.layout.activity_main);
    
    ColoredToast coloredToast= new ColoredToast(MainActivity.this);
    
            coloredToast.success("Welcome to Colored Toast", Toast.LENGTH_SHORT).show());
            coloredToast.fail("Welcome to Colored Toast", Toast.LENGTH_SHORT).show());
            coloredToast.warning("Welcome to Colored Toast", Toast.LENGTH_SHORT).show());
            coloredToast.info("Welcome to Colored Toast", Toast.LENGTH_SHORT).show());

    findViewById(R.id.button5).setOnClickListener(v->
            coloredToast.customs("Welcome to Colored Toast", Toast.LENGTH_SHORT,
            R.color.white, //Must be from Resource - Ignore 0
            android.R.drawable.editbox_dropdown_dark_frame,//Must be from Resource - Ignore 0
            Color.argb(205, 182, 104, 0),//Must be argb - Ignore 0
            android.R.drawable.btn_star_big_on,//Must be from Resource - Ignore 0
                    Gravity.BOTTOM // Ignore 0
            ).show());
}

Screenshots

🚀 About Me

I'm a full stack developer...

🛠 Skills

Java, Kotlin, CSS...

Tech Stack

Important: For Gradle 7.2 & jitpack.io Please use this way : https://stackoverflow.com/a/71603699/12272687

Update: March 2022

🔗 Links

portfolio linkedin twitter

About

This view is a custom toast is included success, fail, warning , info and changeable toast arguments .

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages