concept custom Toast view in category android

appears as: custom Toast view
Android in Action, Third Edition

This is an excerpt from Manning's book Android in Action, Third Edition.

8.3. Making a custom Toast view

Making a custom Toast view is a little more involved than specifying its position, but as you’ll see, it’s still straightforward. To make the custom Toast view, you first need to define a new layout specifically for that Toast view. You can do this a number of ways, including in your application’s code or in XML. Then all you need to do is pass the view to setView(View) when you create the Toast message to display.