Toast Overview¶
SimpleToast
provides simple feedback about an operation in a small popup. It only fills the amount of space required for the message and the current activity remains visible and interactive. Toasts automatically disappear after a timeout.
Long Toast¶
Long toast
SimpleToast.showLongMsg("Hello", this@MainActivity) // use characters directly
SimpleToast.showLongMsg(R.string.app_name, this@MainActivity) // use str id
SimpleToast.showLongMsg("Hello", this@MainActivity) // use characters directly
SimpleToast.showLongMsg(R.string.app_name, this@MainActivity) // use str id
Short Toast¶
Short toast
SimpleToast.showShortMsg("Hello", this@MainActivity) // use characters directly
SimpleToast.showShortMsg(R.string.app_name, this@MainActivity) // use str id
SimpleToast.showShortMsg("Hello", this@MainActivity) // use characters directly
SimpleToast.showShortMsg(R.string.app_name, this@MainActivity) // use str id