Subscribed unsubscribe Subscribe Subscribe

Mobile App Dev Diary

Android (Java, Kotlin), iOS (Swift), Xamarin (C#)

Kotlin 1.1 / Display Toast

Display Toast in Kotlin version 1.1.

Short-duration.

Toast.makeText(this, "Good morning!", Toast.LENGTH_SHORT).show()

Long-duration.

Toast.makeText(this, "Good evening!", Toast.LENGTH_LONG).show()
Remove all ads