Skip to content

//workflow/com.squareup.workflow1.ui/WorkflowViewStub/replaceOldViewInParent

replaceOldViewInParent

[androidJvm]
Content
var replaceOldViewInParent: (ViewGroup, View) -> Unit
More info

Function called from update to replace this stub, or the current actual, with a new view. Can be updated to provide custom transition effects.

Note that this method is responsible for copying the layoutParams from the stub to the new view. Also note that in a WorkflowViewStub that has never been updated, actual is the stub itself.