I know how to get the root view with View.getRootView(). I am also able to get the view from a button\'s onClick event where the argument is a View. But how can
onClick
In Kotlin we can do it a little shorter:
val rootView = window.decorView.rootView