I have created a custom theme for my activities that they all use. In the theme, I set android:background, and this happens to cause any dialog or toast message to look very strange.
How do I prevent toast and the other dialogs from absorbing the theme’s properties?
You can easily create custom toast by the following code:
Or you can instantiate a completely custom toast:
Dialog customizing is a more complex routine. But there is similar workaround.