我如何给 Kotlin 中的进度条留出时间?

How can I give time to a progressbar in Kotlin?

我想在 Android Studio 中使用进度条,我的应用程序是在 Kotlin 中。

如何给进度条完成时间?

你基本上可以用这个;

Handler().postDelayed({
          menuProgressBar!!.setVisibility(View.INVISIBLE)
     },5000/* 5 second */)