toast.maketext android kotlin code example
Example 1: toast in kotlin
Toast.makeText(applicationContext, "Hello", Toast.LENGTH_LONG).show()
Example 2: kotlin toast.maketext
Toast.makeText(this, ".....", Toast.LENGTH_SHORT).show
Example 3: toast.maketext error kotlin
//Only for fragments
Toast.makeText(getContext(), "Your Message", Toast.LENGTH_SHORT).show()