Toast

Toasts provide brief messages about app processes at the bottom of the screen.

Toast

Maven Central Class reference Source code

Default

Day Night
Toast component Toast component - dark mode

Installation

Backpack Android is available through Maven Central. Check the main Readme for a complete installation guide.

Usage

NOTE: This component is deprecated. Please replace it with BpkFloatingNotification from backpack-compose.

The Toast component can be used in Kotlin/Java


                                                
                                                import net.skyscanner.backpack.toast.BpkToast
                                                
                                                BpkToast.makeText(context, "Message", BpkToast.LENGTH_SHORT).show()

The fonts will be applied globally from the current theme. Check theming for more information.