Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom animation for Toast enter/exit?

I want to have my Toast's entrance and exit animations customized. Specifically, I want to make it appear instantly (no fade-in) and disappear like normal (fade-out).

Is there a way I can use animations with a toast?

like image 267
Steven Schoen Avatar asked Dec 23 '12 16:12

Steven Schoen


1 Answers

Toasts are displayed using a system template that can't be changed so short answer is no you cant change the toast animation.

however you can make your own view that resembles a toast and animate it however you want.

like image 177
Androidz Avatar answered Oct 06 '22 06:10

Androidz