Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do you call this tiny popup that appears at the bottom of the android screen called? [closed]

This might be a stupid question but I am new to android terms.

This appears at bottom of screen

I have seen this many times and I want to use this as a notification method. However, I don't know what this is called.

I searched something like:

"Android notification at bottom of screen" "Android popup at bottom of screen" "Android notification box"

I haven't gotten anywhere. I hope to find out what is this called.

like image 368
Fish Avatar asked Jan 08 '23 09:01

Fish


1 Answers

This kind of notification is called Toast. If you want to use Toasts in your application, all you want to do is write a line of code

    Toast.makeText(getApplicationContext(), //Context
                   "This is my message", // Message to display
                    Toast.LENGTH_SHORT // Duration of the message, another possible value is Toast.LENGTH_LONG
                    ).show(); //Finally Show the toast
like image 174
theapache64 Avatar answered Jan 24 '23 21:01

theapache64