📅  最后修改于: 2022-03-11 14:48:36.836000             🧑  作者: Mango
//In Activity use:
Toast.makeText(this@YOUR_ACTIVITY_NAME, "your message", Toast.LENGTH_LONG).show()
//In Fragments use:
Toast.makeText(requireActivity(), "your message", Toast.LENGTH_LONG).show()
Your problem will be solved...