doOnPreDraw
Performs the given action when the view tree is about to be drawn.
The action will only be invoked once prior to the next draw and then removed.
Performs the given action when the view tree is about to be drawn.
The action will only be invoked once prior to the next draw and then removed.