Toast
TOAST A Toast is short message display on the screen. Toast provide simple feedback message with a popup message. Toast automatically disappear after a timeout. Example :- clicking Send on an email triggers a "Sending message..." toast. Context context = getApplicationContext (); CharSequence text = "Hello Shraddha Nand Pandey" ; int duration = Toast . LENGTH_SHORT ; Toast toast = Toast . makeText ( context , text , duration ); toast . show ();// in built function to show toast XML CODE:- <? xml version ="1.0" encoding ="utf-8" ?> < androidx.constraintlayout.widget.ConstraintLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" tools :context =".MainActiv...