This question may be silly, but ... why? Personally, I like the Microsoft style, where {is in the same column as the mapping}. In all the languages I used, it doesn't matter where {was posted.
But in Kotlin only this works.
image_view.viewTreeObserver.addOnGlobalLayoutListener{ };
And that causes an error.
image_view.viewTreeObserver.addOnGlobalLayoutListener { };
source share