library / org.akop.kotx.ext.view / onLayoutReady

onLayoutReady

fun <T : View> T.onLayoutReady(block: (v: T) -> Unit): Unit

Calls block when layout for the view is complete by registering a ViewTreeObserver.OnGlobalLayoutListener, and automatically unregistering when the callback completes.