val info = AlertDialog.Builder(this)
info.setIcon(R.drawable.dnn_rnd)
info.setTitle("标题")
info.setMessage("正文")
info.setPositiveButton(getString(R.string.ok)) {_, _->}
info.setNegativeButton(getString(R.string.visit)) {_, _->}
info.setNeutralButton(getString(R.string.more)) {_, _->}
info.show()
安卓Kotlin 使用AlertDlalog显示文本消息
最新推荐文章于 2024-03-09 11:33:21 发布