Skip to content

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.

Toast

Toast

Long Toast

Version 0.5.3

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

Version 0.5.3

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