Toast
What is Toast ?
A toast is used to show small message or information for short period of time.
Syntax :
Toast.makeText(this, "message or information to be displayed", Toast.LENGTH_LONG).show( );
where this - refers to the current class /context.
message - can contain any message to be displayed
Toast.LENGTH_LONG - displays the message for 4sec
or
Toast.LENGTH_SHORT - displays the message for 2sec
Happy Reading 😊
Thank You
Sushmitha N
Hi there ! Im a experienced android developer with 4years of revelant exprience.My Skills include Android,Core Java ,Oops and Kotlin.
Youtube Channel : SDK Book
Comments
Post a Comment