Exatex Exatex - 5 months ago 13
Android Question

What is the name of that quick popup text at the bottom of the screen?

im searching for the term of that little text that just pops up for a second at the bottom of a screen (like the one that appears if you tap a couple of times on the build number in the Prefrences). I only found complex Dialogs and messages...
Is it possible to create one of these by yourself in an app?

Thanks!

I mean the white text on dark background at the bottom

Answer

This message is called Toast.

Example:

Toast.makeText(this, "message", Toast.LENGTH_SHORT).show();
  • this is the context.

  • The second parameter is your message.

  • The third parameter is the toast duration.

Comments