📜  kotlin 中的 toast - 任何代码示例

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

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

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