Material Toast

Additional

Language
Java
Version
1.0.1 (Dec 24, 2018)
Created
Dec 22, 2018
Updated
Dec 24, 2018
Owner
Marcos Calvo García (marcoscgdev)
Contributor
Marcos Calvo García (marcoscgdev)
1
Activity
Badge
Generate
Download
Source code

Blurb

MaterialToast

A fully and highly customizable material designed Toast for Android.

You can download the sample apk here.


Also with custom icon

MaterialToast.makeText(this, "Hello, I'm a material toast!", R.mipmap.ic_launcher, Toast.LENGTH_SHORT).show();

And also with custom background color (text will be automatically colored based on background color)

MaterialToast.makeText(this, "Hello, I'm a material toast!", R.mipmap.ic_launcher, Toast.LENGTH_SHORT).setBackgroundColor(Color.RED).show();
  • Complete version
new MaterialToast(this)
       .setMessage("Hello, I'm a material toast!")
       .setIcon(R.mipmap.ic_launcher)
       .setDuration(Toast.LENGTH_SHORT)
       .setBackgroundColor(Color.RED)
       .show();

See the


sample project to clarify any queries you may have.