FancyToast code example

Example 1: FancyToast

dependencies {
         implementation 'com.github.sidrxd:Fancy-Toast:1.3'
}

Example 2: FancyToast

new FancyToast()
        // context
            .with(this) 
	// gravity of FancyToast
            .setGravity(Gravity.BOTTOM,0,100) 
	 // set custom icon resource
            .setIcon(R.drawable.ic_round_group_work_24)
	 // set text for FancyToast
            .setText("Showing Show")
	 // corner radius of FancyToast view
            .cornerRadius(16)
	 // show/hide icon
	.hideIcon(false)
	 // finally show the FancyToast
            .show();

Tags:

Misc Example