core-ktx / androidx.view / android.view.View / doOnLayout

doOnLayout

inline fun View.doOnLayout(crossinline action: (view: View) -> Unit): Unit

Performs the given action when this view is laid out. If the view has been laid out, the action will be performed straight away, otherwise the action will be performed after the view is laid out.

See Also

doOnNextLayout