ToastView

class ToastView(context: Context, attrs: AttributeSet) : FrameLayout

Allows to show a message in toast-like style

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Functions

Link copied to clipboard
fun setTextColor(color: Int)

Allows to set the color of text

Link copied to clipboard

Allows to set the background color of the view

Link copied to clipboard
fun showToast(text: String, duration: ToastView.Duration)

Shows a message and than hides itself