📜  kotlin 代码示例中的 toast

📅  最后修改于: 2022-03-11 14:53:33.650000             🧑  作者: Mango

代码示例6
val text = "Hello toast!"
val duration = Toast.LENGTH_SHORT

val toast = Toast.makeText(applicationContext, text, duration)
toast.show()