doOnNextLayout

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

Performs the given action when this view is next laid out.

The action will only be invoked once on the next layout and then removed.

See also