Tampilan Android Hapus pendengar tata letak global Kotlin

containerLayout.viewTreeObserver.addOnGlobalLayoutListener(object: OnGlobalLayoutListener {
    override fun onGlobalLayout() {
        // your code here. `this` should work
    }
})
Important Iguana