Reputation: 3268
I want to use a progressbar in Android Studio and my app is in Kotlin.
How may I give time to a progressbar to be complete?
Upvotes: 1
Views: 1388
Reputation: 159
You can use this with basically;
Handler().postDelayed({
menuProgressBar!!.setVisibility(View.INVISIBLE)
},5000/* 5 second */)
Upvotes: 1