Any ideas why "lang" is not recognized? I found code in kotlin in this question.
Any ideas why "lang" is not recognized? I found code in kotlin in this question.
Runnable is class from lang package.
you should be import and use it.
import java.lang.Runnable
this@MainActivity.runOnUiThread(Runnable {
progressBar.visibility = View.GONE
})