MMG
MMG

Reputation: 3268

How can I give time to a progressbar in Kotlin?

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?

Enter image description here

Upvotes: 1

Views: 1388

Answers (1)

Murat Çakır
Murat Çakır

Reputation: 159

You can use this with basically;

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

Upvotes: 1

Related Questions