Poizi Toast

The PoiziToast library enhances and builds upon the Android Toast class. This library offers many customization options over the standard Android Toast class.

Screenshots

Normal Error Info Warning Success Custom

Dependency

Usage

  1. Add this in your root build.gradle file:
allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}
  1. Add this to your module’s build.gradle file:
dependencies {
	...
	compile 'com.github.farshidabz:poizitoast:v1.0.1'
}
  1. How to use:

Each method always returns a PoiziToast object, so you can customize the Toast much more. DON’T FORGET THE show() METHOD!

Attributes

attribute name attribute description
icon The icon of Poizi Toast.
gravity The gravity of Poizi Toast.
TextSize The message’s text size.
TextColor The message’s text color.
TextTypeFace The message’s text type face.
BackgroundColor The background color of Poizi Toast.