I know that I could do all of this easily with a custom toast layout, but in creating a custom layout, I would no longer be using the system’s default toast view.
Example: Toasts of course look different in Android 2.2 vs Android 4.0. If I create a custom view for my toast, then it will look the exact same in both versions, but what I want is for it to retain its… “Androidiness” for lack of a better word. Basically, does anyone know of a default toast XML layout? Is that even possible?
This is the default layout used by
Toasts.transient_notification
These are the enter and exit animations
ENTER
EXIT
toast_frame_holo.9 is the name of the resource used for the background. Search the SDK to find all of the sizes.
And here is the full source for
ToastsIf you’re unsure about any of that, search the SDK for all of the resources, that’s where I looked.