dialog.findViewById(R.id.close)?. let { it.visibility = View.VISIBLE it.text =(context.applicationContext作为MyApplication).locals.getText(“ close.button”) it.setOnClickListener { clickManager !!。onNextClicked() //在关闭对话框之前,希望它向下或淡出动画(试图设置许多动画,但没有任何效果,看不到任何变化) dialog.dismiss() }